SSH & Telnet On Ubuntu 8.04

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) 😀

4 thoughts on “SSH & Telnet On Ubuntu 8.04

  1. that’s why, i am lazy to using ubuntu as a server. their package was not complete. as far i know, to set telnet server, we can make it from inetd.conf, just uncomment the line with “telnet”.
    i like to use opensuse or freebsd for a server. ubuntu is a good for desktop

  2. i know this article was written awhile back, but i just wanted to put my two cents in here.

    in response to the 1st poster, personally i love the fact that ubuntu server doesn’t come with anything on it. it’s designed to be a headless server. how does anybody know what you want to run on it?

    ubuntu server is STRONGER and BETTER in it’s bare and simple form. you choose which applications you want on there. that way there aren’t any open ports to cause security risks. there aren’t any looming background applications taking up precious memory space. etc. (precious meaning a p3 600mhz with 128mb ram, hehe)

    BTW, if you install openssh-server, you do not need to install telnetd. just use putty with SSH, it’s much more secure. there’s no need to have an open TCP port if you don’t need it.

    • @ Charles : yes I know we can (and should) use the SSH instead of telnet. The point of this post is to show how we enable the telnetd on the Ubuntu, not talking about which protocol more secure whatsoever.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.