installation
sudo apt-get install openssh-server
Remote login
ssh username@IP
must write yes/no when confirming the connection.
For example: the server administrator remotely logs in to the foreign host through ssh for maintenance
sign out
logout
scp command
scp is equivalent to super copy
. The prerequisite for using this command is that the target host has successfully installed openssh-server.
Use the format
username @ scp -r target destination host IP address: the absolute path / object files / saved to the machine absolute (relative) path
scp -r [email protected]: / home / gt / test / ./mytest/
copy Directory requires parameter -r