Server Topic
   >  Introduction to OpenSSH
   >  Installing OpenSSH
   >  Starting & Stopping OpenSSH
   >  OpenSSH Configuration

 

Installing OpenSSH on an Ubuntu PC

Installing OpenSSH Client on an Ubuntu PC

Setting up the OpenSSH client on an Ubuntu system is just a matter of installing the package from the command line. Type the following:

$ sudo apt-get install ssh

You should see some output similar to that below:

$ sudo apt-get install ssh
 Reading package lists... Done
 Building dependency tree       
Reading state information... Done
 The following package was automatically installed and is no longer required:
  ttf-droid
 Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  openssh-server
 Suggested packages:
  rssh molly-guard openssh-blacklist openssh-blacklist-extra
 The following NEW packages will be installed
   openssh-server ssh
 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 303kB of archives.
After this operation, 860kB of additional disk space will be used.
Do you want to continue [Y/n]? y
 Get:1 http://gb.archive.ubuntu.com/ubuntu/ maverick-updates/main openssh-server i386 1:5.5p1-4ubuntu5 [302kB]
Get:2 http://gb.archive.ubuntu.com/ubuntu/ maverick-updates/main ssh all 1:5.5p1-4ubuntu5 [1,280B]
Fetched 303kB in 2s (132kB/s) 
Preconfiguring packages ...
Selecting previously deselected package openssh-server.
(Reading database ... 148877 files and directories currently installed.)
Unpacking openssh-server (from .../openssh-server_1%3a5.5p1-4ubuntu5_i386.deb) ...
Selecting previously deselected package ssh.
Unpacking ssh (from .../ssh_1%3a5.5p1-4ubuntu5_all.deb) ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
 Processing triggers for ufw ...
Processing triggers for man-db ...
Setting up openssh-server (1:5.5p1-4ubuntu5) ...
Creating SSH2 RSA key; this may take some time ...
Creating SSH2 DSA key; this may take some time ...
 * Stopping OpenBSD Secure Shell server sshd                             [ OK ] 
ssh start/running, process 3338
 Setting up ssh (1:5.5p1-4ubuntu5) ...
$

To test the client out, simply attempt to connect to another machine (-or even yourself), for example :

$ ssh localhost

If you see output similar to the following, then OpenSSH installed correctly:

The authenticity of host 'localhost (::1)' can't be established.
RSA key fingerprint is 08:f1:8b:4d:0c:4a:69:36:55:6e:54:26:a6:67:9b:41.
Are you sure you want to continue connecting (yes/no)?

Just type "No" to quit back to the command line.



HomeSite IndexDesktop GuideServer GuideHints and TipsHardware CornerVideo SectionContact Us

 sitelock verified Firefox Download Button