Could anybody tell me the exact steps to make a secure connection from my server to my external IP address using SSH... I would like to access my Ubuntu server from other places... But securely.
Asked
Active
Viewed 385 times
1 Answers
0
The linked answer is about SFTP, which is more complicated. Configuring ssh server is much easier.
Step 1 : Install OpenSSH package if not installed
sudo apt-get install openssh-server
Step 2 : Add to your /etc/ssh/sshd_config
PermitRootLogin no
Step 3 : Restart sshd service.
sudo service ssh restart
Step 4 : Generate key pair on the computer from where you want to access your machine and copy the public part to your machine:
ssh-keygen -f ~/.ssh/id_rsa
ssh-copy-id -i ~/.ssh/id_rsa your_machine
Jakuje
- 6,793