Logging at a server with ssh

We can log in at a server or pc with ssh. For this here is some instruction.

1. Suppose we are at 192.168.100.1 and trying to ssh at 192.168.100.5 .

ssh 192.168.100.5

This command will try to connect the 192.168.100.5 as the user that he already logged in the 192.168.100.1. Suppose we are at the root user in the 192.168.100.1. Then the command will try to connect at 192.168.100.5 as the root user.

2. ssh reza@192.168.100.5

This command will try to ssh at 192.168.100.5 as the reza user.

3. ssh -l nayem 192.168.100.5

This command will try to ssh at 192.168.100.5 as nayem user.

4. ssh -p 29 root@192.168.100.5

This command will try to ssh at 192.168.100.5 using the port 29.

Thats all my knowledge about this issue. Expect to get any advice from you.

Advertisements

3 Comments »

  1. deidara7777 said

    can you give the user name and password??

  2. rezanayem said

    you are assigning a user name while trying to ssh. So you just have to give a password to log in.

  3. rezanayem said

    you must have to know the password (the password of the username that you are trying to login) of the remote server that you want to login.

RSS feed for comments on this post · TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: