Tuesday 7 June 2011

SSH


SSH (Secure Shell)

SSH (SSH client) is a program for logging into a remote machine and for executing commands on a remote machine.  It is intended to replace rlogin and rsh, and provide secure encrypted communications between two untrusted hosts over an insecure network. X11 connections and arbitrary TCP ports can also be forwarded over the secure channel.

Run the command
# ssh-keygen –t dsa
Then press three time enter, after press three time enter, generate two keys.
i) id-dsa = it is private key,              ii) id-dsa.pub = it is public key

Now go to client side computer and follow below steps
# mkdir /root/.ssh                           (Create a directory of .ssh in /root)
# touch authorized_keys                (Create a file in .ssh directory)

Then again go to server side and run the          
# scp /root/.ssh/id-dsa.pub root@ip add.of client:/root/.ssh/authorized_keys
Write yes and enter

            Now check firewall setting of both side server & client
            Now run the command                              
# ssh- ip add of client/ server
Ctrl+D                                              (Fire for end the session)

No comments:

Post a Comment

Boot to UEFI Mode or legacy BIOS mode

Boot to UEFI Mode or legacy BIOS mode Choose UEFI or legacy BIOS modes while installing Windows. After Windows is installed, if you nee...