0
can somebody explain me how I can transfer files with SFTP over bash and with ssh keys instead of passwords? I use Debian 7 and openssh server.
Regards, Akitoyo
0
can somebody explain me how I can transfer files with SFTP over bash and with ssh keys instead of passwords? I use Debian 7 and openssh server.
Regards, Akitoyo
2
Create your keys with ssh-keygen, transfer your public key (~/.ssh/id_rsa.pub) to the host with ssh-copy-id user@host.
Then simply sftp user@host from command line.
I did it that way, and it works when I do ssh user@host, but with sftp it stills ask me a password. – Akitoyo – 2014-02-01T20:56:13.713
Check the value of the variable RSAAuthentication in your /etc/ssh/sshd_config file. If it is set no, either you change it to yes, or you generate an ssh dsa key with the command ssh-keygen -t dsa and copy it to your remote host as @user2815007 suggested. – Alessandro Dotti Contra – 2014-02-02T15:28:02.097