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
[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?
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
SSH to Amazon EC2
location: linuxquestions.com - date: July 22, 2011
I am wondering if anyone has any experience with SSHing to Amazon's EC2 site. Has anybody used this site and have any opinions on the reliability, security and real world usefulness of this site for running a cloud?
SSH] Server Version OpenSSH_5.3
[SSH] FAIL: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
[SSH] INFO: DISCONNECT
I get the above when I try to ZOC to an EC2 instance. I generated the key pair when the instance was created and appears to be a valid key. I am trying to do this from a windows7 box. I also tried using puTTY and got a similar result. Using puTTY Amazon says you have to convert .pem --> .ppk using puTTYgen and save the new resulting private key and use this not the .pem file for initiating the SSH session.
Server refused our key
No supported authentication method available(server sent:
Any help or information on Amazon EC2 appreciated. Thanks
[SOLVED] SSH connection issues on Ubuntu 10.10
- date: December 25, 2011
Recently installed openssh-client & openssh-server on my ubuntu 10.10 box, and my backtrack 5 laptop, yet I can't connect to either host using ssh [email protected]
Keep getting the port 22 connection refused error, and yeah I have updated my port rules to allow 22 on both machines, thanks in advance
HOWTO: Enable and control the gnome VNC vinoserver from an SSH connection
- date: September 28, 2006
NOTE: At long last here's the updated method. This was tested between two Ubuntu 10.10 Maverick hosts. Thanks to all the contributors to this thread, especially the posts by frafu and InkyDinky
:~$ ssh -Y [email protected]
# check settings and hit close button
:~$ sudo -s
:~# export DISPLAY=:0.0
:~# xhost +
:~# /usr/lib/vino/vino-server &
# to start the vino server
:~# netstat -nl | grep 5900
# check to make sure vino server is listening on port 5900
exit or CTRL-D twice to close SSH session to remotebox
:~$ ssh -L 5900:localhost:5900 [email protected]
# establish a new SSH connection to remotebox w/forwarded VNC port
# launch Remote Desktop Viewer (vinagre) under Applications => Internet and connect to localhost
[SOLVED] Creating Custom SSH iptable rules for use with UFW
location: linuxquestions.com - date: February 22, 2011
I'm trying to set up a firewall at the moment that allows access to my custom SSH port from only my friend's url (they have a static url but dynamic IP). I find iptables a bit of a nightmare and was hoping to use UFW for most of my day to day firewall maintenance and just make a few extra iptable rules to cover exceptional circumstances like this. Fortunately it seems UFW allows this with /etc/ufw/before.rules and /etc/ufw/after.rules.
So at the moment I'm just trying to get the basic iptables rules right. As I say I'm not very good with iptables, does this look right?
Page: 1 2 3 4 5 6 7 8 9 10