Binary Buddha
Contributor
- Joined
- Mar 6, 2016
- Messages
- 126
Been trying to figure out what broke my once running passwordless SSH key setup. Don't know where the SSH log on Freenas is to give more detail. But here's the info I got. /Users/Binary/.ssh/id_rsa is the key used. It's like Freenas base OS isn't accepting my key anymore.
On Freenas
[binary@freenas ~/.ssh]$ ls -la
total 80
drwx------ 2 binary binary 6 Apr 10 22:56 .
drwxrwxrwx 16 binary binary 34 Apr 10 22:54 ..
-rwxr-xr-x 2 binary binary 396 Apr 10 22:55 authorized_keys
-rwxr-xr-x 2 binary binary 396 Apr 10 22:55 authorized_keys2
-rw------- 1 binary binary 1679 Apr 10 22:54 id_rsa
-rw-r--r-- 1 binary binary 402 Apr 10 22:54 id_rsa.pub
-rw-r--r-- 1 binary binary 402 Apr 10 22:54 id_rsa.pub
[binary@freenas ~/.ssh]$ cat authorized_keys*
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuSO75OvD2udB65iaLFQ9jFamp9RxwDSjxo/Or5mdFWPkWThTsTM6fizxobl2ZzJVBOYFA9YwjP4iVhWzS8Iz5CdGr4XsHiu24RZcIkd/W7UMpNR750R7cJVkbxZjkPPXiOFM68V0Rs2k+gFxWq3bfxIAxqV+dpv7UJQSkIN27wZvqfuv5Ps7Fr6pwXyMSGypf9HO/HEOIe88PRhhgBizbhydvohHexm7tu+Tmm8m9IjD9AId3HmMlz1kO4FpG43EJyJQVFTSXwwc8jq3daRLgArbYMtS0KDi0h5XyQbLGUBUIVmJwDUQcK5VnEsi9Q9yP9JuMlrpul50yEr6/motaQ== psyber@Bitslip
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuSO75OvD2udB65iaLFQ9jFamp9RxwDSjxo/Or5mdFWPkWThTsTM6fizxobl2ZzJVBOYFA9YwjP4iVhWzS8Iz5CdGr4XsHiu24RZcIkd/W7UMpNR750R7cJVkbxZjkPPXiOFM68V0Rs2k+gFxWq3bfxIAxqV+dpv7UJQSkIN27wZvqfuv5Ps7Fr6pwXyMSGypf9HO/HEOIe88PRhhgBizbhydvohHexm7tu+Tmm8m9IjD9AId3HmMlz1kO4FpG43EJyJQVFTSXwwc8jq3daRLgArbYMtS0KDi0h5XyQbLGUBUIVmJwDUQcK5VnEsi9Q9yP9JuMlrpul50yEr6/motaQ== psyber@Bitslip
On Client
Molly-2:.ssh Binary$ cat id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuSO75OvD2udB65iaLFQ9jFamp9RxwDSjxo/Or5mdFWPkWThTsTM6fizxobl2ZzJVBOYFA9YwjP4iVhWzS8Iz5CdGr4XsHiu24RZcIkd/W7UMpNR750R7cJVkbxZjkPPXiOFM68V0Rs2k+gFxWq3bfxIAxqV+dpv7UJQSkIN27wZvqfuv5Ps7Fr6pwXyMSGypf9HO/HEOIe88PRhhgBizbhydvohHexm7tu+Tmm8m9IjD9AId3HmMlz1kO4FpG43EJyJQVFTSXwwc8jq3daRLgArbYMtS0KDi0h5XyQbLGUBUIVmJwDUQcK5VnEsi9Q9yP9JuMlrpul50yEr6/motaQ== psyber@Bitslip
Molly-2:.ssh Binary$ ssh -v nas
OpenSSH_6.9p1, LibreSSL 2.1.8
debug1: Reading configuration data /Users/Binary/.ssh/config
debug1: /Users/Binary/.ssh/config line 63: Applying options for nas
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 20: Applying options for *
debug1: /etc/ssh/ssh_config line 53: Applying options for *
debug1: Connecting to 10.0.0.4 [10.0.0.4] port 22.
debug1: Connection established.
debug1: identity file /Users/Binary/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/Binary/.ssh/id_rsa-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.9
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.6.1_hpn13v11 FreeBSD-20140420
debug1: match: OpenSSH_6.6.1_hpn13v11 FreeBSD-20140420 pat OpenSSH_6.6.1* compat 0x04000000
debug1: Authenticating to 10.0.0.4:22 as 'binary'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client chacha20-poly1305@openssh.com <implicit> none
debug1: kex: client->server chacha20-poly1305@openssh.com <implicit> none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:JKQAiGKbefmlfdMwl5FsaWbgAQai4YCPaJNPpV2Kb0g
debug1: Host '10.0.0.4' is known and matches the ECDSA host key.
debug1: Found key in /Users/Binary/.ssh/known_hosts:13
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /Users/Binary/.ssh/id_rsa
debug1: Authentications that can continue: publickey,password
debug1: Offering RSA public key: BHA-id_rsa
debug1: Authentications that can continue: publickey,password
debug1: Offering RSA public key: nas_key_id_rsa
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: password
binary@10.0.0.4's password:
SSH Config on client for "nas":
host nas
hostname 10.0.0.4
user binary
IdentityFile /Users/Binary/.ssh/id_rsa
On Freenas
[binary@freenas ~/.ssh]$ ls -la
total 80
drwx------ 2 binary binary 6 Apr 10 22:56 .
drwxrwxrwx 16 binary binary 34 Apr 10 22:54 ..
-rwxr-xr-x 2 binary binary 396 Apr 10 22:55 authorized_keys
-rwxr-xr-x 2 binary binary 396 Apr 10 22:55 authorized_keys2
-rw------- 1 binary binary 1679 Apr 10 22:54 id_rsa
-rw-r--r-- 1 binary binary 402 Apr 10 22:54 id_rsa.pub
-rw-r--r-- 1 binary binary 402 Apr 10 22:54 id_rsa.pub
[binary@freenas ~/.ssh]$ cat authorized_keys*
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuSO75OvD2udB65iaLF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0KDi0h5XyQbLGUBUIVmJwDUQcK5VnEsi9Q9yP9JuMlrpul50yEr6/motaQ== psyber@Bitslip
Molly-2:.ssh Binary$ ssh -v nas
OpenSSH_6.9p1, LibreSSL 2.1.8
debug1: Reading configuration data /Users/Binary/.ssh/config
debug1: /Users/Binary/.ssh/config line 63: Applying options for nas
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 20: Applying options for *
debug1: /etc/ssh/ssh_config line 53: Applying options for *
debug1: Connecting to 10.0.0.4 [10.0.0.4] port 22.
debug1: Connection established.
debug1: identity file /Users/Binary/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/Binary/.ssh/id_rsa-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.9
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.6.1_hpn13v11 FreeBSD-20140420
debug1: match: OpenSSH_6.6.1_hpn13v11 FreeBSD-20140420 pat OpenSSH_6.6.1* compat 0x04000000
debug1: Authenticating to 10.0.0.4:22 as 'binary'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client chacha20-poly1305@openssh.com <implicit> none
debug1: kex: client->server chacha20-poly1305@openssh.com <implicit> none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:JKQAiGKbefmlfdMwl5FsaWbgAQai4YCPaJNPpV2Kb0g
debug1: Host '10.0.0.4' is known and matches the ECDSA host key.
debug1: Found key in /Users/Binary/.ssh/known_hosts:13
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /Users/Binary/.ssh/id_rsa
debug1: Authentications that can continue: publickey,password
debug1: Offering RSA public key: BHA-id_rsa
debug1: Authentications that can continue: publickey,password
debug1: Offering RSA public key: nas_key_id_rsa
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: password
binary@10.0.0.4's password:
SSH Config on client for "nas":
host nas
hostname 10.0.0.4
user binary
IdentityFile /Users/Binary/.ssh/id_rsa