In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to use SSH to build a personal file server under Linux. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
It is easy to connect to a remote Linux system through SSH. The following is a tutorial.
Raspberry pie is a useful and inexpensive home server that can be used for many things. My raspberry pie is most commonly used as a print server, sharing laser printers on my home network, or saving project copies and other data as a personal file server.
My file server has many uses. Suppose I have a project now, such as a new book, and I want to make a snapshot of my work and all related documents. In this scenario, I just need to copy the BookProject folder to the BookBackup folder of the file server.
Or I'm cleaning up my local files and find some files I don't need, but I'm not sure if I want to delete them. I'll copy them to the KeepForLater folder of the file server. This is a convenient way to clean up cluttered files in my daily Linux system and uninstall infrequently used files to a personal file server.
There is no need to configure NFS (Network File system Network File System >) or CIFS (Universal Internet File system Common Internet File System) or modify other file sharing systems such as WebDAV to build personal file servers with raspberry pie or other Linux systems. You can easily use SSH to build a remote file server. The following is a tutorial.
Configure SSHD on a remote server
Your Linux system may have the SSH daemon (sshd) installed, or even it is running by default. If not, you can easily configure SSH using any control panel on your Linux distribution. I run Fedora ARM on the raspberry pie, access port 9090 of the raspberry pie through a Web browser, and I can access the control panel remotely. (in my home network, the IP address of raspberry pie is 10.0.0.11, so I am connecting to 10.0.0.11 VR9090. If the SSH daemon does not run by default, you can set it to boot in the "Services" of the Control Panel.
Sshd in the list of system services
You can find sshd in the list of system services.
Slider to activate sshd
If sshd is not open, click the toggle button to open it.
Do you have an account number?
You need an account for a remote system. It can be the same or different from your local system account.
On the popular Raspbian distribution, the default account name is pi. But other Linux distributions may require you to set up a unique new user when you install the system. If you don't know your user name, you can use the system's control panel to create one. On my raspberry pie, I created a jhall account, which is the same as the user name of my daily Linux desktop machine.
Set up a new account on Fedora Server
If you are using a Fedora server, you can click the "create a new account" button.
Set password or SSH key
Don't forget to set the password or add the public key.
Optional: add public key
If you add the public key to a remote Linux system, you can log in without a password. This step is optional; you can still log in with a password if you like.
Create a shortcut to the file manager
Now that you have started the SSH daemon on the remote system and set the user name and password, the final step is to create a shortcut in your local file manager that maps the address to the remote Linux system. My desktop is GNOME, but the basic steps are the same on other Linux desktops.
Establish an initial connection
In the GNOME file manager, find the "+ other location" button in the left navigation bar. Clicking it will bring up a "Connect to Server" prompt box. Enter the address of the remote Linux server in the box, starting with the SSH connection protocol.
Creating a shortcut in GNOME file manager
The GNOME file manager supports multiple connection protocols. To connect through SSH, the server address begins with sftp:// or ssh://.
If the user name of your remote Linux system is the same as the local one, you only need to enter the address and folder path of the server. For example, to connect to the / home/jhall directory of my raspberry pie, I type:
S ftp://10.0.0.11/home/jhall
GNOME file manager Connect to Server
If the user name of your remote Linux system is different from that of the local system, you can specify the user name of the remote system by prefix the @ symbol to the remote system address. To connect to a remote Raspbian system, you may have to type:
S ftp://pi@10.0.0.11/home/pi
GNOME file manager Connect to Server
If you do not add the public key to the remote server, you need to enter the password. If you have already added it, the GNOME file manager should automatically open the folder on the remote system to allow you to jump to a different directory.
GNOME file manager connection
Create a shortcut so that you can easily connect to the server
In the GNOME file manager, this is simple. Right-click the name of the remote system in the navigation bar and select add Bookmark. This creates a shortcut to connect to the remote path.
GNOME file manager-adding bookmark
If you want to change the shortcut in the label to a more memorable name, you can right-click the shortcut and choose "rename".
This is the end of this article on "how to build a personal file server with SSH under Linux". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it out for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.