[Gllug] SFTP Server

Tethys tet at accucard.com
Wed Apr 9 11:05:53 UTC 2003


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

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list