SSH Server on Ubuntu

Type
Gist
Published
September 27, 2024
Author
Chetan Agrawal

Install SSH Server

  • Install openssh-server using following command
sudo apt install openssh-server
  • Setup the config file
sudo sshd -t -f /etc/ssh/sshd_config
  • Restart the service
sudo systemctl restart sshd.service
Now ssh command from a different machine should work.