To set up SSH in Ubuntu:
sudo apt-get install openssh-server openssh-client
sudo /etc/init.d/ssh restart
- If the router port (22 for example) is not open, need to open the desired port so you can listen to incoming connections.
- Also check out the /etc/ssh/ssh_config to enjoy all the configuration
- PubkeyAuthentication yes
- PasswordAuthentication no