Installing SSH in Ubuntu 9.10
- February 5th, 2010
- Write comment
Outlined are steps which will work for most Linux distributions, make sure to check if you are running an SSH service. Linux operating systems have SSH already enabled in many cases. After following the steps below your default port will be 22, this can be changed by editing the sshd_config file in ~/home/ssh/sshd_config
After making any changes to this config file you will have to restart the SSH service for the changes to take effect. Type the following:
sudo /etc/init.d/ssh restart
If you are planing to remote to this machine from outside your local network be sure to forward your port of choice to your computers internal IP address.
Installation of the OpenSSH client and server applications is simple. To install the OpenSSH client applications on your Ubuntu system, use this command at a terminal prompt:
sudo apt-get install openssh-client
To install the OpenSSH server application, and related support files, use this command at a terminal prompt:
sudo apt-get install openssh-server
The openssh-server package can also be selected to install during the Server Edition installation process.
Configuration
You may configure the default behavior of the OpenSSH server application, sshd, by editing the file /etc/ssh/sshd_config. For information about the configuration directives used in this file, you may view the appropriate manual page with the following command, issued at a terminal prompt:
man sshd_config


