SSH
- Installing SSH if it is not setup
sudo apt-get updatesudo apt install openssh-server- check for firewall
sudo ufw allow sshsudo ufw enable
- check for firewall
sudo systemctl enable --now sshssh username@ipaddress
sudo apt install openssh-server
sudo systemctl enable --now ssh
ssh username@ipaddress
sshremote_host
Copy
The remote_host in this example is the IP address or domain name that you are trying to connect to.
This command assumes that your username on the remote system is the same as your username on your local system.
If your username is different on the remote system, you can specify it by using this syntax:
sshremote_username@remote_host
Copy
Once you have connected to the server, you may be asked to verify your identity by providing a password. Later, we will cover how to generate keys to use instead of passwords.
To exit the ssh session and return back into your local shell session, type:
exit
https://www.digitalocean.com/community/tutorials/how-to-use-ssh-to-connect-to-a-remote-server
scp filename username@ip_address:/home/username - send files via ssh