Nevertheless, I, Jay Jaeckel, hereby certify that this transcript, as shown here, substantially and correctly shows what actually happened.
Software installation is done as super-user:
jeremy@debian5vm: /home/jeremy $su - Password:________
First, see if by chance sshd is somehow already installed and running. The following output shows that it is not:
(SUPER-USER!) root@debian5vm: /root #ps aux | grep ssh jeremy 3286 0.0 0.1 4760 568 ? Ss 14:53 0:00 /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session /usr/bin/startkde root 3504 0.0 0.1 3120 720 pts/1 S+ 15:09 0:00 grep ssh
Install sshd. The following installs the sshd server only,
not the ssh client.
(We've observed earlier that the ssh client
is already here.)
(SUPER-USER!) root@debian5vm: /root #apt-get install openssh-server Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: openssh-blacklist openssh-blacklist-extra Suggested packages: ssh-askpass rssh molly-guard The following NEW packages will be installed: openssh-blacklist openssh-blacklist-extra openssh-server 0 upgraded, 3 newly installed, 0 to remove and 6 not upgraded. Need to get 4547kB of archives. After this operation, 9179kB of additional disk space will be used. Do you want to continue [Y/n]?Y Get:1 http://ftp.us.debian.org lenny/main openssh-blacklist 0.4.1 [2125kB] Get:2 http://ftp.us.debian.org lenny/main openssh-blacklist-extra 0.4.1 [2127kB] Get:3 http://ftp.us.debian.org lenny/main openssh-server 1:5.1p1-5 [295kB] Fetched 4547kB in 34s (131kB/s) Preconfiguring packages ... Selecting previously deselected package openssh-blacklist. (Reading database ... 40220 files and directories currently installed.) Unpacking openssh-blacklist (from .../openssh-blacklist_0.4.1_all.deb) ... Selecting previously deselected package openssh-blacklist-extra. Unpacking openssh-blacklist-extra (from .../openssh-blacklist-extra_0.4.1_all.deb) ... Selecting previously deselected package openssh-server. Unpacking openssh-server (from .../openssh-server_1%3a5.1p1-5_i386.deb) ... Processing triggers for man-db ... Setting up openssh-blacklist (0.4.1) ... Setting up openssh-blacklist-extra (0.4.1) ... Setting up openssh-server (1:5.1p1-5) ... Creating SSH2 RSA key; this may take some time ... Creating SSH2 DSA key; this may take some time ... Restarting OpenBSD Secure Shell server: sshd.
Observe that sshd is installed and running now: (This entire above install process took only about two minutes.)
(SUPER-USER!) root@debian5vm: /root #ps aux | grep ssh jeremy 3286 0.0 0.1 4760 568 ? Ss 14:53 0:00 /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session /usr/bin/startkderoot 3689 0.0 0.1 5416 984 ? Ss 15:16 0:00 /usr/sbin/sshd root 3716 0.0 0.1 3120 720 pts/1 S+ 15:20 0:00 grep ssh (SUPER-USER!) root@debian5vm: /root #exit logout jeremy@debian5vm: /home/jeremy $
Now, running as an ordinary non-super-user again (jeremy), test logging into localhost using ssh:
jeremy@debian5vm: /home/jeremy $ssh localhost The authenticity of host 'localhost (127.0.0.1)' can't be established. RSA key fingerprint is 1f:88:20:39:c7:15:c3:7f:2c:aa:b0:dc:28:69:55:59. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'localhost' (RSA) to the list of known hosts. jeremy@localhost's password:________ Linux debian5vm 2.6.26-2-686 #1 SMP Thu Jan 27 00:28:05 UTC 2011 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Mon Feb 28 14:53:29 2011 jeremy@debian5vm: /home/jeremy $exit logout Connection to localhost closed.
Also, test logging into localhost as a different user using ssh:
jeremy@debian5vm: /home/jeremy $ssh stu1@localhost stu1@localhost's password:________ Linux debian5vm 2.6.26-2-686 #1 SMP Thu Jan 27 00:28:05 UTC 2011 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Sun Feb 27 20:21:41 2011 stu1@debian5vm: /home/stu1 $who am i stu1 pts/2 2011-02-28 15:25 (localhost) stu1@debian5vm: /home/stu1 $exit logout Connection to localhost closed.
Also, test logging into this machine from another machine (a Windown XP client) across the local LAN, using PuTTY
After re-booting: ps shows that /usr/sbin/sshd is running:
jeremy@debian5vm: /home/jeremy $ps aux | grep ssh root 2862 0.0 0.1 5416 980 ? S<s 15:35 0:00 /usr/sbin/sshd jeremy 3277 0.0 0.1 4760 568 ? Ss 15:36 0:00 /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session /usr/bin/startkde jeremy 3372 0.0 0.1 3124 728 pts/1 S+ 15:37 0:00 grep ssh
And we can still log in to localhost using ssh:
jeremy@debian5vm: /home/jeremy $ssh stu1@localhost stu1@localhost's password: Linux debian5vm 2.6.26-2-686 #1 SMP Thu Jan 27 00:28:05 UTC 2011 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Mon Feb 28 15:25:16 2011 from localhost stu1@debian5vm: /home/stu1 $ls -l total 4 drwx------ 2 stu1 stu1 4096 2011-02-24 22:02 Desktop stu1@debian5vm: /home/stu1 $logout Connection to localhost closed. jeremy@debian5vm: /home/jeremy $