ssh-keys

use ppk file in mac terminal to connect to remove connection over ssh

I have been using putty on WINDOWS XP and used the .ppk file to connect to my linux servers (several servers) On the servers I have the following folder and file ~/.ssh/authorized_keys I now want to use a MAC to connect via the terminal. I have set up the remote connections to the servers manually and want to know how I can setup using...

remote jconsole session to ec2 box - how?

How do I turn off ssh login with pem authentication on an ubuntu ec2 instance to allow for a remote jconsole session? I am on an Ubuntu Lucid EBS-backed AMI. I tried changing the two lines below to no, but get a permission denied error: RSAAuthentication yes PubkeyAuthentication yes My ssh_d config file: # Package generated configu...

how to use Net::SSH::Perl with public keys?

I'm trying to use Net::SSH::Perl to connect using public keys with this code: my $ssh = Net::SSH::Perl->new($host, debug=>1) || die ...... I put the key in /root/.ssh/id_rsa and /root/.ssh/identity It seems that it's not trying to use the public key and instead trying to ask for a password: I get this output: localhost: Sent ke...

Given a Java ssh-rsa PublicKey, how can I build an SSH2 public key?

I'm doing publicKey.getEncoded(), then appending "ssh-rsa" to the front, then base64 encoding it. Then I add the SSH2 header/footer. But it won't decode... ...

ssh: The authenticity of host 'hostname' can't be established

When i ssh to a machine, sometime i get this error warning and it prompts to say "yes" or "no". This cause some trouble when running from scripts that automatically ssh to other machines. Is there a way to automatically say "yes" or ignore this? ...

How to ssh into the cpanel of my hosting server?

I want to ssh into my domain's cpanel hosted on a linux server ? I'm planning to use Ubuntu's terminal as my ssh client. my hosting service provide is squarebrothers ...

Creating SSH keys for Gerrit and Hudson

I'm trying to use the Hudson Gerrit Trigger plug-in. For whatever reason, Gerrit is not accepting the SSH key located at /var/lib/hudson/.ssh/id_rsa. In the GUI I get Connection error : com.jcraft.jsch.JSchException: Auth fail as an error, and when I'm working in the terminal I get a Permission denied (publickey) error. How can I gene...

Is it possible to switch the user on a git repo?

We have a staging server that we use git to manage very simply: develop locally, git commit/push, and then git pull on the server. I'd love to be able to switch user on the server's copy so I could run the git pull rather than the person who set up the environment. Any idea if this is possible? ...

Eucalyptus: getting private key from key pair through API / or injecting custom public key to instance

I'm probably having the most simple problem, but I'm still a bit at my wits end. Basically my problems are related to this command: euca-run-instances -k mykey emi-104915A8 As you know, when starting up instance in Eucalyptus, either through API (as I actually am) or with the command above, the key pair has to be created. If I have und...

strange ssh issues with github

Scenario 1. I am doing this from /home/deploy directory I am trying to set up ssh with github for capistrano deployment. this has been an absolute nightmare. when I do ssh [email protected] as the deploy account I get Permission denied (publickey). so may be the key is not being found, so If I do a ssh-add /home/deploy/.ssh/id_rsa Co...

Git, how to generate public key

Hi everyone, I am a newbie to Git/GitHub and would like to know how to generate a public key(to be used in GitHub) using Git Bash. The command below generates the error sh.exe": syntax error near unexpected token '(' I am using windows xp. $ ssh-keygen -t rsa -C "[email protected]" Generating public/private rsa key pair. Enter file ...

Check if passwordless access has been setup

Hello, I would test via a python script whether a passwordless ssh login has been setup or not. If i run the normal ssh command then it will wait to accept the password for some amount of time. Is there a way where the ssh command should return an error as soon as ssh asks for a password. Is it possible to achieve this? ...

What to do about "PTY allocation request failed on channel 0"

I can't see to wrap my head creating an ssh key for GitHub. I had it working quite awhile back but I can't figure out what has changed. I've since removed the previous SSH keys from my GitHub account. After following the instructions several times for generating an SSH key (http://help.github.com/mac-key-setup) and testing "ssh git@githu...

Can connect to server through nautilus, but not through terminal

As the title says, I can connect to a particular ubuntu server through nautilus (sftp) but not through terminal. Not sure if it's using public or private key encryption, but I don't use a password to login. Any ideas? ...

Git SSH setup Permission denied (publickey)

Hi, I'm using a VWWare image of Ubuntu 8.04 and experiencing problems while setting up git access over SSH I get the following output debug1: Authentications that can continue: publickey debug1: Next authentication method: publickey debug1: Offering public key: debug1: Authentications that can continue: publickey debug1: Offering pub...

Is there any way to generate public SSH key from private one using Python ?

... or if not, can you provide me link or RFC number to full algorithm (from getting ASCII encoded Private key file/string to generation of ASCII encoded public key file/string). To show you a bigger picture - I started using a pylibssh2 library. This library has a method - userauth_publickey_fromfile (it raises NotImplementedException,...

Can I test authentication with an RSA key locally?

Is there a way to check locally if you're providing the correct passphrase to an RSA key? I recently had trouble pushing some commits to github because the push prompted for a password and then failed authentication. I verified that github had the correct public key for the id_rsa file in my ~/.ssh directory, and I verified that I could...

When using Git or SSH copy / remote login, etc, should we re-use the same SSH keys or create new ones every time?

With the increasing use of Git or SSH copying or login, we can use just 1 pair of public and private key, or we probably can create different pairs on different machines, such as 1 for the notebook and 1 for the desktop, and 1 for the Virtual Machine. Should we use 1 pair or should we use multiple pairs? If we use just 1 pair, then we ...