Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Feb 2005 00:05:24 +0530
From:      Shantanoo Mahajan <shantanoo@gmail.com>
To:        dave <dmehler26@woh.rr.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: ssh, sftp, and public key authentication
Message-ID:  <20050223183524.GA2363@dhumketu.homeunix.net>
In-Reply-To: <006d01c515c3$92ed5300$fb7cb941@satellite>
References:  <006d01c515c3$92ed5300$fb7cb941@satellite>

next in thread | previous in thread | raw e-mail | index | archive | help
+++ dave [freebsd] [18-02-05 09:10 -0500]:
| Hello,
|     I've got a machine i use public keys on to which i'm trying to ssh. When
| i created a key for this user i did not define a passphrase, yet i am being
| asked for one when i ssh in to the box. I use the command ssh -i
| <filename.pub> hostname however if i do sftp username@hostname i'm allowed
| in no questions asked.
|     Help needed!
| Thanks.
| Dave.

google for 'passworldless ssh login'

Process in short

On the Client machine:
> ssh-keygen -t dsa

~/.ssh/id_dsa and ~/.ssh/id_dsa.pub are created.

> scp ~/.ssh/id_dsa.pub user@server:~/.ssh/authorized_keys2


>From client:

> ssh user@server

you will be logged in w/o any password.

Regards,
Shantanoo



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050223183524.GA2363>