Category: SSH

Jan 14

Ssh login failure

Recently I had a problem logging into a server using ssh.  I setup the public key as usual as an authorized key on the server but kept seeing an "Agent admitted failure" message.

$ ssh server.domain.com
Agent admitted failure to sign using the key.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

The fix was to update the ssh-agent as follow:

$ ssh-add
Enter passphrase for /home/rrosso/.ssh/id_rsa:
Identity added: /home/rrosso/.ssh/id_rsa (/home/rrosso/.ssh/id_rsa)

$ ssh server.domain.com
Last login: Mon Jan 14 18:01:31 2013 from .hstntx.sbcglobal.net

Comments Off on Ssh login failure
comments

Dec 12

Ssh and Scp through intermediate host

Quick way to use ssh / scp through an intermediate host.

~$ cat .ssh/config
Host rrhome
User    rrosso
HostName x.x.x.x
ProxyCommand    ssh rrosso@dmzhostname nc %h %p 2> /dev/null

~$ scp rrhome:/ts/hdpvrgrab/output.ts ./

Comments Off on Ssh and Scp through intermediate host
comments