About Linux FAQ

Browse More FAQs:

Ubuntu Linux OpenSSH Server installation and configuration

Posted by Vivek Gite [Last updated: November 19, 2007]

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:

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:

Discussion on This FAQ

  1. WzrdOfOost Says:

    Nice detailed tutorial. I managed to get it all working. I wrote about it in my blog http://my-linux-server.blogspot.com

  2. Tristan Garrett Says:

    Very helpful tutorial. Thanks much!

    TG

  3. Jeremy Roush Says:

    Thanks for the write-up. Odd its not installed by default.

  4. Scott Bohler Says:

    Thank you! Up-and-running in less than 5 minutes.

    :o)

  5. Krishna Says:

    Thanks a lot - this is very helpful

  6. Devvrath Says:

    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

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!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Tags: , , , , , , , , , , ,

Copyright © 2006-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Sitemap - Powered by Open source software.