![]() Īnd, upload a file from local machine to remote server (for example, to remote user’s home directory) via: scp -P 1234 /PATH/TO/FILE -P 1234 if the default port 22 is in use. To transfer a file from remote server to local machine in current directory, use command: scp -P 1234. For the default listening port, use command: ssh the first time, you need to answer ‘yes’ to confirm connection, and then input the password of the remote user to get pass. Of course, replace the “remote_server_ip” with the IP address, and ‘1234’ with port number. Here, you need to replace username with username in your remote server. In case you don’t even know how to login remote server via SSH, you may run the command below in local machine to make connection: ssh -p 1234 You can get the documentation by running command: man sshd_configĪfter saving the changes via Ctrl+X keyboard shortcut, follow with Y, and Enter, remember to reload the SSH service by running the previous systemctl command. Specify the local addresses ssh should listen on via ListenAddress.Īnd there are many more other configuration rules available.Disable root login via “PermitRootLogin no”.If specified, only users in the list can login. By default, all users is allowed to login. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |