damon@DamonVirtual ~ $ ssh-add -l The agent has no identities. damon@DamonVirtual ~ $ ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/home/damon/.ssh/id_rsa): Created directory '/home/damon/.ssh'. Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/damon/.ssh/id_rsa. Your public key has been saved in /home/damon/.ssh/id_rsa.pub. The key fingerprint is: 43:8f:87:98:9f:1c:51:e7:b3:91:02:34:13:34:44:90 damon@DamonVirtual The key's randomart image is: +--[ RSA 2048]----+ | .B@.. . | | E * o . | | o . = | | + = . + | | o S o . | | o = | | + | | | | | +-----------------+ damon@DamonVirtual ~ $ ssh-add -l 2048 43:8f:87:98:9f:1c:51:e7:b3:91:02:34:13:34:44:90 damon@DamonVirtual (RSA) damon@DamonVirtual ~ $ ssh-add -L ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCcAS41N/hU4Pa1lyFFJHd8DA75ATnnqqvY+CtqZW8pY+xaTpeNXBIRBJeZCgDqDIDuJ4KIiXNS/z7OfIPtx17/pynuGoGLunpGB5lFs2hlfinvor9NaFdRedzNpBwNQ34fFNqwH3ka13O98GqEhjsyD3Pwprdlsbyyzk9FmJwCwXx8lkcZF/Ec1o7eW8VutCZZ8fQAGJ0pvyYiQCxXN+32zdtbcZbDtxd5B287bWi8cjtTr1mBtTOJGR7G6n/HC4HzEfe3+ggricMewnG+vOff2MaIaj5Zz3sv4qwzRmjJ/4KY4xmoCvd1omb/rfat8QZlhKzPHfqfownQ3P/S+Lnn damon@DamonVirtual damon@DamonVirtual ~ $ openssl pkcs8 -topk8 -in .ssh/id_rsa -out .ssh/id_rsa_enc -v2 des3 Enter Encryption Password: Verifying - Enter Encryption Password: damon@DamonVirtual ~ $ chmod 600 .ssh/id_rsa_enc damon@DamonVirtual ~ $ ssh-add -l 2048 43:8f:87:98:9f:1c:51:e7:b3:91:02:34:13:34:44:90 damon@DamonVirtual (RSA) damon@DamonVirtual ~ $ cp .ssh/id_rsa.pub .ssh/id_rsa_enc.pub damon@DamonVirtual ~ $ ssh-add -l 2048 43:8f:87:98:9f:1c:51:e7:b3:91:02:34:13:34:44:90 damon@DamonVirtual (RSA) 2048 43:8f:87:98:9f:1c:51:e7:b3:91:02:34:13:34:44:90 damon@DamonVirtual (RSA) damon@DamonVirtual ~ $ ssh-add -L ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCcAS41N/hU4Pa1lyFFJHd8DA75ATnnqqvY+CtqZW8pY+xaTpeNXBIRBJeZCgDqDIDuJ4KIiXNS/z7OfIPtx17/pynuGoGLunpGB5lFs2hlfinvor9NaFdRedzNpBwNQ34fFNqwH3ka13O98GqEhjsyD3Pwprdlsbyyzk9FmJwCwXx8lkcZF/Ec1o7eW8VutCZZ8fQAGJ0pvyYiQCxXN+32zdtbcZbDtxd5B287bWi8cjtTr1mBtTOJGR7G6n/HC4HzEfe3+ggricMewnG+vOff2MaIaj5Zz3sv4qwzRmjJ/4KY4xmoCvd1omb/rfat8QZlhKzPHfqfownQ3P/S+Lnn damon@DamonVirtual ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCcAS41N/hU4Pa1lyFFJHd8DA75ATnnqqvY+CtqZW8pY+xaTpeNXBIRBJeZCgDqDIDuJ4KIiXNS/z7OfIPtx17/pynuGoGLunpGB5lFs2hlfinvor9NaFdRedzNpBwNQ34fFNqwH3ka13O98GqEhjsyD3Pwprdlsbyyzk9FmJwCwXx8lkcZF/Ec1o7eW8VutCZZ8fQAGJ0pvyYiQCxXN+32zdtbcZbDtxd5B287bWi8cjtTr1mBtTOJGR7G6n/HC4HzEfe3+ggricMewnG+vOff2MaIaj5Zz3sv4qwzRmjJ/4KY4xmoCvd1omb/rfat8QZlhKzPHfqfownQ3P/S+Lnn damon@DamonVirtual damon@DamonVirtual ~ $ mv .ssh/id_rsa . damon@DamonVirtual ~ $ ssh-add -l 2048 43:8f:87:98:9f:1c:51:e7:b3:91:02:34:13:34:44:90 damon@DamonVirtual (RSA) 2048 43:8f:87:98:9f:1c:51:e7:b3:91:02:34:13:34:44:90 damon@DamonVirtual (RSA) damon@DamonVirtual ~ $ ssh-add -L ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCcAS41N/hU4Pa1lyFFJHd8DA75ATnnqqvY+CtqZW8pY+xaTpeNXBIRBJeZCgDqDIDuJ4KIiXNS/z7OfIPtx17/pynuGoGLunpGB5lFs2hlfinvor9NaFdRedzNpBwNQ34fFNqwH3ka13O98GqEhjsyD3Pwprdlsbyyzk9FmJwCwXx8lkcZF/Ec1o7eW8VutCZZ8fQAGJ0pvyYiQCxXN+32zdtbcZbDtxd5B287bWi8cjtTr1mBtTOJGR7G6n/HC4HzEfe3+ggricMewnG+vOff2MaIaj5Zz3sv4qwzRmjJ/4KY4xmoCvd1omb/rfat8QZlhKzPHfqfownQ3P/S+Lnn damon@DamonVirtual ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCcAS41N/hU4Pa1lyFFJHd8DA75ATnnqqvY+CtqZW8pY+xaTpeNXBIRBJeZCgDqDIDuJ4KIiXNS/z7OfIPtx17/pynuGoGLunpGB5lFs2hlfinvor9NaFdRedzNpBwNQ34fFNqwH3ka13O98GqEhjsyD3Pwprdlsbyyzk9FmJwCwXx8lkcZF/Ec1o7eW8VutCZZ8fQAGJ0pvyYiQCxXN+32zdtbcZbDtxd5B287bWi8cjtTr1mBtTOJGR7G6n/HC4HzEfe3+ggricMewnG+vOff2MaIaj5Zz3sv4qwzRmjJ/4KY4xmoCvd1omb/rfat8QZlhKzPHfqfownQ3P/S+Lnn damon@DamonVirtual damon@DamonVirtual ~ $ mv .ssh/id_rsa.pub . damon@DamonVirtual ~ $ ssh-add -l 2048 43:8f:87:98:9f:1c:51:e7:b3:91:02:34:13:34:44:90 damon@DamonVirtual (RSA) damon@DamonVirtual ~ $ ssh-add -L ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCcAS41N/hU4Pa1lyFFJHd8DA75ATnnqqvY+CtqZW8pY+xaTpeNXBIRBJeZCgDqDIDuJ4KIiXNS/z7OfIPtx17/pynuGoGLunpGB5lFs2hlfinvor9NaFdRedzNpBwNQ34fFNqwH3ka13O98GqEhjsyD3Pwprdlsbyyzk9FmJwCwXx8lkcZF/Ec1o7eW8VutCZZ8fQAGJ0pvyYiQCxXN+32zdtbcZbDtxd5B287bWi8cjtTr1mBtTOJGR7G6n/HC4HzEfe3+ggricMewnG+vOff2MaIaj5Zz3sv4qwzRmjJ/4KY4xmoCvd1omb/rfat8QZlhKzPHfqfownQ3P/S+Lnn damon@DamonVirtual damon@DamonVirtual ~ $ ssh -v 192.168.178.38 OpenSSH_6.1p1 Debian-4, OpenSSL 1.0.1c 10 May 2012 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options for * debug1: Connecting to 192.168.178.38 [192.168.178.38] port 22. debug1: Connection established. debug1: identity file /home/damon/.ssh/id_rsa type -1 debug1: identity file /home/damon/.ssh/id_rsa-cert type -1 debug1: identity file /home/damon/.ssh/id_dsa type -1 debug1: identity file /home/damon/.ssh/id_dsa-cert type -1 debug1: identity file /home/damon/.ssh/id_ecdsa type -1 debug1: identity file /home/damon/.ssh/id_ecdsa-cert type -1 debug1: Remote protocol version 2.0, remote software version OpenSSH_6.0p1 Debian-3ubuntu1 debug1: match: OpenSSH_6.0p1 Debian-3ubuntu1 pat OpenSSH* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_6.1p1 Debian-4 debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: server->client aes128-ctr hmac-md5 none debug1: kex: client->server aes128-ctr hmac-md5 none debug1: sending SSH2_MSG_KEX_ECDH_INIT debug1: expecting SSH2_MSG_KEX_ECDH_REPLY debug1: Server host key: ECDSA d0:42:c3:a4:bb:2e:f0:cd:38:c1:32:d5:a5:ac:4c:d5 The authenticity of host '192.168.178.38 (192.168.178.38)' can't be established. ECDSA key fingerprint is d0:42:c3:a4:bb:2e:f0:cd:38:c1:32:d5:a5:ac:4c:d5. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.178.38' (ECDSA) to the list of known hosts. debug1: ssh_ecdsa_verify: signature correct debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: Roaming not allowed by server debug1: SSH2_MSG_SERVICE_REQUEST sent debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey debug1: Next authentication method: publickey debug1: Offering RSA public key: damon@DamonVirtual debug1: Server accepts key: pkalg ssh-rsa blen 279 Agent admitted failure to sign using the key. debug1: Trying private key: /home/damon/.ssh/id_rsa debug1: Trying private key: /home/damon/.ssh/id_dsa debug1: Trying private key: /home/damon/.ssh/id_ecdsa debug1: No more authentication methods to try. Permission denied (publickey). damon@DamonVirtual ~ $ mv .ssh/id_rsa_enc . && mv .ssh/id_rsa_enc.pub . damon@DamonVirtual ~ $ ssh-add -l The agent has no identities. damon@DamonVirtual ~ $ mv id_rsa .ssh/ && mv id_rsa.pub .ssh/ damon@DamonVirtual ~ $ ssh-add -l 2048 43:8f:87:98:9f:1c:51:e7:b3:91:02:34:13:34:44:90 damon@DamonVirtual (RSA) damon@DamonVirtual ~ $ ssh-add -L ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCcAS41N/hU4Pa1lyFFJHd8DA75ATnnqqvY+CtqZW8pY+xaTpeNXBIRBJeZCgDqDIDuJ4KIiXNS/z7OfIPtx17/pynuGoGLunpGB5lFs2hlfinvor9NaFdRedzNpBwNQ34fFNqwH3ka13O98GqEhjsyD3Pwprdlsbyyzk9FmJwCwXx8lkcZF/Ec1o7eW8VutCZZ8fQAGJ0pvyYiQCxXN+32zdtbcZbDtxd5B287bWi8cjtTr1mBtTOJGR7G6n/HC4HzEfe3+ggricMewnG+vOff2MaIaj5Zz3sv4qwzRmjJ/4KY4xmoCvd1omb/rfat8QZlhKzPHfqfownQ3P/S+Lnn damon@DamonVirtual damon@DamonVirtual ~ $ ssh 192.168.178.38 Last login: Thu Jun 6 05:34:45 2013 from damon.local damon@Damon ~ $ exit