By default, Ubuntu installed without SSH and Telnet server. To make Ubuntu can be accessed remotely using SSH/Telnet protocol, we must install SSH server and Telnet server. To install SSH server simply by run this command :
tedy@tedy-laptop:~$ sudo apt-get install openssh-server
See the following detail :
tedy@tedy-laptop:~$ sudo apt-get install openssh-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libwxgtk2.8-0 kdebase-data kicker libkonq4 libwxbase2.8-0
Use 'apt-get autoremove' to remove them.
Suggested packages:
molly-guard rssh
The following NEW packages will be installed:
openssh-server
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/252kB of archives.
After this operation, 668kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
openssh-server
Install these packages without verification [y/N]? y
Preconfiguring packages ...
Selecting previously deselected package openssh-server.
(Reading database ... 199826 files and directories currently installed.)
Unpacking openssh-server (from .../openssh-server_4.7p1-8ubuntu1_i386.deb) ...
Setting up openssh-server (1:4.7p1-8ubuntu1) ...
Creating SSH2 RSA key; this may take some time ...
Creating SSH2 DSA key; this may take some time ...
* Restarting OpenBSD Secure Shell server sshd [ OK ]
tedy@tedy-laptop:~$ ps -ef | grep sshd
root 8228 1 0 08:37 ? 00:00:00 /usr/sbin/sshd
tedy 8248 7815 0 08:38 pts/2 00:00:00 grep sshd
tedy@tedy-laptop:~$
root@tedy-laptop:/home/tedy# /etc/init.d/ssh restart
* Restarting OpenBSD Secure Shell server sshd [ OK ]
root@tedy-laptop:/home/tedy#
To install Telnet server we can execute this command :
tedy@tedy-laptop:~$ sudo apt-get install telnetd
See the following detail :
root@vpn-test:/home/tedy# apt-get install telnetd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
openbsd-inetd
The following NEW packages will be installed:
openbsd-inetd telnetd
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/76.9kB of archives.
After this operation, 283kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
WARNING: The following packages cannot be authenticated!
openbsd-inetd telnetd
Install these packages without verification [y/N]? y
Selecting previously deselected package openbsd-inetd.
(Reading database ... 99838 files and directories currently installed.)
Unpacking openbsd-inetd (from .../openbsd-inetd_0.20050402-6_i386.deb) ...
Selecting previously deselected package telnetd.
Unpacking telnetd (from .../telnetd_0.17-35ubuntu1_i386.deb) ...
Setting up openbsd-inetd (0.20050402-6) ...
* Stopping internet superserver inetd [ OK ]
* Not starting internet superserver: no services enabled.
Setting up telnetd (0.17-35ubuntu1) ...
Adding user telnetd to group utmp
root@vpn-test:/home/tedy#
After install the Telnet server, we must reboot the server first. To test Telnet connection to my Linux server, I used MS Dos Prompt (Windows XP support Telnet protocol but no SSH client inside that).

To test access the SSH server installed on my Ubuntu server, I used Putty. See the examples below :


So right now, I can access my Ubuntu server remotely. For your informations, the commands apt-get install will automatically installed some other dependency files. Of course, we must have access to the Ubuntu repository (on DVD or over network to the repository server) ๐