location: linuxquestions.com - date: November 3, 2010
I am trying to set up a SSH key between servers so no password is required when I have to "scp" files between the two.
This is what I have tried so far but still requires a password:
- date: May 29, 2011
I am trying to install a private public keypair on my mac, to connect to my server.
For some reason the process just isn't working...
I open my Mac
<ssh-keygen -t rsa>
get my keys
Open my server
open my .ssh/authorized_keys folder
vim and paste in my public key
<chmod 600 .ssh/authorized_keys>
then go back to my Mac and log in at
ssh [email protected]
but it is not implementing the keygen protocol
...........it just goes straight to password
[SOLVED] ssh keygen not working
location: ubuntuforums.com - date: May 14, 2008
i have created a new key after the latest update. i copied over to the remote machine with scp and put it in authorized_keys2 but whenever i log in it still asks for a password. this is a problem at two of the 6 locations i ssh into but the other 4 work perfectly.
dont know what else to do
rsync with ssh asking for password after keygen
- date: October 3, 2012
ive set up passwordless ssh by running ssh-keygen , then swapped keys using ssh-copy-id . i can login without being asked for a password if i just type in ssh [email protected]
, but when running this rsync command i get prompted for a password on the remote machine. im transferring data from a remote machine to a local computer, and im running rsync from the local machine.
sudo rsync --delete --progress -azvv -e ssh [email protected]
could it be that when i created the keys i didnt add these options? and thats whats causing the problems? ssh-keygen -t rsa
[SOLVED] bash: ssh.keygen: command not found
location: linuxquestions.com - date: July 6, 2014
Trying to configure git which requires that I generate a SSH key using
SSH keygen error: 'passphrase too short: have 2 bytes, need >4'
location: linuxexchange.com - date: July 19, 2015
I am trying to automate the process of generating an SSH RSA key.When the command below is run on the command line it generates the key correctly:
ssh-keygen -f /root/.ssh/id_rsa -t rsa -N ''
The issue arises when I try to replicate this in a python 2 script.
if not os.path.isfile('/root/.ssh/id_rsa.pub'):
fullcmd = ['ssh-keygen', '-f', '/root/.ssh/id_rsa', '-t', 'rsa', '-N', '\'\'']
sshcmd = subprocess.Popen(fullcmd,
out = sshcmd.communicate().split('\n')
for lin in out:
When I run this script I get this error:
> passphrase too short: have 2 bytes, need >4
> Generating public/private
> rsa key pair. Saving the key failed: /root/.ssh/id_rsa.
Why dose it work when I execute it on the command line and not through the python script?