[Gllug] SFTP Server
Xander D Harkness
xander at harkness.co.uk
Wed Apr 9 13:23:27 UTC 2003
Neil Fryer wrote:
>Hi
>
>Ok, this all makes sense, but how do I test this, as I have done this, and
>it just looks the same to me?
>Still get prompted for password?
>
it is probably because the permissions are wrong on the authorized_keys
file. This file should be readable by the owner only.
Have a look in the logs on both machines, messages and secure
Kind regards
Xander
>
>Kind Regards
>Neil Fryer
>
>-----Original Message-----
>From: Tethys [mailto:tet at accucard.com]
>Sent: Wednesday, April 09, 2003 12:06 PM
>To: gllug at linux.co.uk
>Subject: Re: [Gllug] SFTP Server
>
>
>
>Neil Fryer writes:
>
>
>
>>Can anyone point me to some really decent docs for the above, as I have to
>>set up two of these in a hurry, and I know that SFTP is a subsystem of SSH,
>>and I have enabled it in the sshd_config file, but now I need to allow key
>>authentication, and to generate my own keys, and I don't know how to do
>>this.
>>
>>
>
>Since sftp is just an ssh subsystem, normal ssh keys are fine. First,
>generate your key pair:
>
> ssh-keygen -t dsa
>
>Then append the public key to the authorized key list on the remote server:
>
> scp ~/.ssh/id_dsa.pub me at remoteserver:
> ssh me at remoteserver 'cat id_dsa.pub >> .ssh/authorizde_keys2'
>
>Next time you ssh (or scp or sftp) to remoteserver, you'll be using
>public key authentication, rather than password authentication. It'll
>prompt you for your passphrase, instead of your password. For scripted
>use, you can either have an empty passphrase, or use ssh-agent to
>automatically enter it for you. There are pros and cons to both
>approaches.
>
>Tet
>
>
>
--
We are so fond of each other because our ailments are the same.
-- Jonathon Swift
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list