Sunday, September 11, 2011

How to install SSH server in Ubuntu 10.10

ssbs@ssbs-mrtg:~$ sudo apt-get install openssh-server

[sudo] password for ssbs:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
openssh-client
Suggested packages:
libpam-ssh keychain openssh-blacklist openssh-blacklist-extra rssh
molly-guard
The following NEW packages will be installed:
openssh-server
The following packages will be upgraded:
openssh-client
1 upgraded, 1 newly installed, 0 to remove and 349 not upgraded.
Need to get 1,143kB of archives.
After this operation, 823kB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
openssh-client openssh-server
Install these packages without verification [y/N]? y
Get:1 http://sa.archive.ubuntu.com/ubuntu/ maverick-updates/main openssh-client i386 1:5.5p1-4ubuntu6 [840kB]
Get:2 http://sa.archive.ubuntu.com/ubuntu/ maverick-updates/main openssh-server i386 1:5.5p1-4ubuntu6 [302kB]
Fetched 1,143kB in 2min 4s (9,194B/s)
Preconfiguring packages ...
(Reading database ... 123783 files and directories currently installed.)
Preparing to replace openssh-client 1:5.5p1-4ubuntu4 (using .../openssh-client_1%3a5.5p1-4ubuntu6_i386.deb) ...
Unpacking replacement openssh-client ...
Selecting previously deselected package openssh-server.
Unpacking openssh-server (from .../openssh-server_1%3a5.5p1-4ubuntu6_i386.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Processing triggers for ufw ...
Setting up openssh-client (1:5.5p1-4ubuntu6) ...
Setting up openssh-server (1:5.5p1-4ubuntu6) ...
Creating SSH2 RSA key; this may take some time ...
Creating SSH2 DSA key; this may take some time ...
ssh start/running, process 12765
ssbs@ssbs-mrtg:~$

Now u can access from remote systems
following screen from Windwos 7 Desktop using putty.exe



following screen showing root logged in ubuntu 10.10




Note: remember when u install ubuntu u don't know the password for root :) so first login using ur username then :
#sudo passwd

it will ask u the password for ur user
then change the root password.

Pictures used in this Blog