Ubuntu Linux OpenSSH Server installation and configuration
Q. I have just installed Ubuntu 6.06 and I would like to allow remote login to my system from home via ssh. How do I install and configure SSH server?
A. OpenSSH is a FREE version of the SSH connectivity tools that technical users of the Internet rely on. Users of telnet, rlogin, and ftp may not realize that their password is transmitted across the Internet unencrypted, but it is. OpenSSH encrypts all traffic (including passwords) to effectively eliminate eavesdropping, connection hijacking, and other attacks. Additionally, OpenSSH provides secure tunneling capabilities and several authentication methods, and supports all SSH protocol versions.
Ubuntu SSHD Installation
Type the following two command to install both ssh client and server:
# sudo apt-get install openssh-server openssh-client
SSHD Configuration
To be frank your server is ready by default. Just test it from your home computer or from same system with the command:
# ssh localhost
OR
# ssh user@your-server-ip-address
How do I use ssh client?
Assuming that your server hostname is userver.mydomain.com and username is vivek, you need to type the following command:
# ssh vivek@userver.mydomain.com
To stop ssh server, enter:
# sudo /etc/init.d/ssh stop
To start sshs server, enter:
# sudo /etc/init.d/ssh start
To restart ssh server, enter:
# sudo /etc/init.d/ssh restart
See also:
- Setup SSH to run on a non-standard port
- SSH Public key based authentication - How-to?
- How to force sshd server to display login banner before login (change the ssh server [sshd] login banner)?
- Read the man page of sshd, sshd_config for more information
Subscribe to our free e-mail newsletter or RSS feed to get all updates.
You can Email this page to a friend.
Related Other Helpful FAQs:
- Install OpenSSH Server on Asus EEE PC
- Ubuntu Linux: Start / stop / restart OpenSSH / ssh server
- Ubuntu Linux enable telnet service
- Ubuntu / Debian Linux Regenerate OpenSSH Host Keys
- Does Linux grub replace Windows MBR?
Discussion on This FAQ
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: connectivity tools, login banner, openssh, server hostname, server ip address, setup ssh, ssh client, ssh protocol, ssh public key, ssh server, sshd server, sudo



August 18th, 2006 at 6:52 pm
Nice detailed tutorial. I managed to get it all working. I wrote about it in my blog http://my-linux-server.blogspot.com
February 25th, 2007 at 12:17 am
Very helpful tutorial. Thanks much!
TG
June 1st, 2007 at 11:15 pm
Thanks for the write-up. Odd its not installed by default.
June 17th, 2007 at 2:37 am
Thank you! Up-and-running in less than 5 minutes.
:o)
October 13th, 2007 at 11:42 am
Thanks a lot - this is very helpful
November 28th, 2007 at 4:24 am
where can I find my ip address, I use the wireless network provided to me by my college.
when I do
“ifconfig”
I get
eth1 inet addr:10.XXX.XXX.XXX
and
lo inet addr:XXX.XXX.XXX.XXX
now from remote, when I try
ssh @10.XXX.XXX.XXX
its refuse to except my password.
also, from the other blog, i edited /etc/ssh/sshd_config file and I added line
AllowUsers
but its still not working. which IP address I am suppose to use.
also, when I open a website, which gives IP address, it shows my IP address as
127.XXX.XXX.XXX
which is different from 10.XXX.XXX.XXX which i get using “ifconfig”
Thanks