• RSS
  • SmsJobs
  • Sms
  • GoogleBuzz
  • Facebook
  • Twitter
  • Linkedin
  • Youtube
The Linux Juggernaut

The Linux Juggernaut

roles on……

Do you like www.linuxnix.com ? Please consider supporting us by becoming a subscriber and get a Linux basics e-book for free.

By default in Ubuntu SSH(Secure SHell) server is not installed. This is a big problem when you want to access the Ubuntu machines from other machines we can not access. In this post I will show you how to install and SSH server and give you some examples how to use ssh.

Installing ssh server in ubuntu
#apt-get install openssh-server
Once you install now try to login to that machine
#ssh 0

Note : In this example i am login to same machine, which i am going to check whether service is running or not. We should get successfully login for the above command which will prompt for password.

SSH examples:

Example1 : Login to a remote machine using its hostname
#ssh servername

Note : This will allow us to login to remote server on default
ssh port(22)

Example2 : Login to a remote machine using its IP add
#ssh 192.168.0.1

Example3 : Login in to a remote machine which uses different port for running ssh server
#ssh 192.168.0.1 2010

Note : Here SSH server is running on 2010 port(some times this is good practice to secure the system).

Example4 : Login to a remote machine with different user
#ssh user@192.168.0.1

Example5 : Executing commands on remote machine with out login to the machine.
#ssh 192.168.0.1 “ls -l”

Note : This command will execute “ls -l” command on remote host:192.168.0.1 and gives the output on a local machine.

SSH server is a big concept which can not be dealt with in one post. Will try to write another post on SSH server.

Do you like www.linuxnix.com ? Please consider supporting us by becoming a subscriber and get a Linux basics e-book for free.
bySurendra On Monday-January - 18 - 2010

email newsletter

Redhat Flagship dist

Redhat announced that they are going to release RHEL7 by ...

12 examples to use f

Flower brackets examples This is a small post on how to ...

7 Linux read command

read command examples read command is useful in scripts when reading ...

7 linux sort command

Linux/Unix sort command examples This is a small tutorial on how ...

How to find command

How to find command location in Linux and Unix This is ...

  • About Linux Juggernaut

    How the blog name selected? Juggernaut: * a massive inexorable force that seems to crush everything in its way ...readmore>>

  • Contact Me

    Contact us Send an Email Phone number and vCard LinkedIn profile Advertise with us
  • About Me

    Surendra Kumar Chowdary

    My name is Surendra Kumar Anne. I am from Vijayawada which is cultural capital of south Indian state of Andhra Pradesh. I am a Linux evangelist who believes in Hard work, A down to earth person, Likes to share knowledge with others, Loves dogs, Likes photography. At present i work at Persistent Systems as Module Lead.   read more »