SSH connection without password
October 6th 2006

[Update (24/03/2007): see new post on subject]

Following Txema's wonderful explanations, and translating from Basque a Dec 2, 2002 e-mail, here they go the instructions to connect from computer A to B via SSH, without computer B ever asking for our password.

Notice that it is not a security breach, because we are allowing a certain computer A (and user) to connect to B. Of course, if A is somehow compromised, then applying this recipe would give the attacker hability to connect from A to B with no hassle. If you fear computer A being compromised, then don't do it.

On the other hand, it can actually be a hardening of the security of computer B. If only a certain user of A is allowed to connect to B without password, and then remote passwords are deactivated (making that, if you need to input a password, you can not connect), then a cracker breaking into A would have to first break into the account of that certain user to access B. Otherwise, no other user is allowed to try to connect to B from A.

Whatever.... Let's get going:

In computer A, generate a DSA key for that machine (and account):

ssh-keygen -t dsa

This creates the following file at ~/.ssh/:

The contents of such file should be copy-pasted (beware line-breaking, because it is a single, very long, line) into B, namely into a file called (create if doesn't exist, append to it if it exists) ~/.ssh/authorized_keys2.

Now, the A user in whose ~/.ssh/ resides the, will be able to connect without password to the B computer account of the user in whose ~/.ssh/ is the authorized_keys2 file.

Tags: , , , ,


2 Responses to “SSH connection without password”

  1. SSH connection without password (II) « handyfloss on 08 Nov 2007 at 13:42 pm #

    [...] by isilanes on March 24th, 2007 About 5 months ago I made a post explaining how to use SSH to connect from computer A to computer B without going through the hassle [...]

  2. Halley on 22 Jan 2015 at 0:32 am #

    aiff at this time, and make certain your songs are in the correct order by
    placing an 01 etc. There are tons of free programs on the market that
    allow you to do this easily and quickly. Some wireless systems are able to
    transmit full 1080p high-definition signals.

Trackback URI | Comments RSS

Leave a Reply

Subscribe without commenting

« | »

  • The contents of this blog are under a Creative Commons License.

    Creative Commons License

  • Meta