[Gllug] Re: [GLUG] SFTP Server

Buchan Milne bgmilne at cae.co.za
Wed Apr 9 12:12:02 UTC 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Neil Fryer wrote:
> Hi All,
>
> 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.

First just get ssh working with keys:

For older versions of ssh (IIRC older than 3.0)
$ ssh-keygen

For newer versions:
$ ssh-keygen -t dsa
(or -t rsa or -t rsa1 depending on which kind you want, rsa1 will only
support SSH1, which you probably don't want)

To get your public key to the other server:
$ ssh-copy-id [-i path/to/id_dsa.pub] host at server

(ie, I can't remember if it is necessary to tell it which identity file).

Now you should be able to ssh to it with your key. If you used a
passphrase, load it up with ssh-add (or keychain, which is even better).
For automated (ie non-interactive) use, you should only consider a
passphrase if you have keychain set up. If you did not save the key as
the default, you will have to use -i path/to/id_dsa or similar in all
ssh commands.

BTW, using sftp may not be the best option, it seems to be much slower
than scp or rsync.

Regards,
Buchan

- --
|--------------Another happy Mandrake Club member--------------|
Buchan Milne                Mechanical Engineer, Network Manager
Cellphone * Work            +27 82 472 2231 * +27 21 8828820x121
Stellenbosch Automotive Engineering         http://www.cae.co.za
GPG Key                   http://ranger.dnsalias.com/bgmilne.asc
1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE+lA4RrJK6UGDSBKcRAoILAKCaWMz7eiVYfyFSQ5Fl2jYrXvgg+QCfQ6Ra
4FbZ/qJyzNHCwxx9OMi4V38=
=Rmvc
-----END PGP SIGNATURE-----


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




More information about the GLLUG mailing list