Hacking Tricks

Your Ad Here

Hacking Tricks

Sunday, March 22, 2009

Hacking Linux ssh




Friend i found a trick which is most demanded by you.

Most of us need to remotely run utilities on other machines using remote login. ssh allows you to execute code on remote machine.

However in normal usage it prompts you for password which makes it hard to use in unattended processes.

We need to authenticate to the server or the remote machine.

So here is the solution to bypass the authenticity chack and execute remotely without password.

If want to connect to remote machine named machineX as user named user.

Perform the following steps and you are done with it.

1) Generate a private-public keypair using ssh-keygen as follows:

ssh-keygen -t dsa

This will create a private and public keypair which is stored in ~/.ssh directory.
2) Next run the following command once for every machine you want to remotely login without specifying password:

Now you can login to the machine using ssh without requiring to specify any password.

Your public key, which you copied to the remote machine, is checked (not directly) against your private key to verify your authenticity.

Thus authenticity is bypassed and you can do your work.

Leave cooments if you like the trick.