First time posting so i will try to provide as much information as possible, let me know if you need more logs or anything.
Anyways, my freenas has been set up and i can access files remotely using SSH and a user login. Its also available on the local network and i can transfer files thru CIFS.
The issue i am having is when i turn off allow password authentication and try to use RSA keys.
I generated them using puttygen and put the public key in the "SSH Public Key field" under the user profile. I have tried manually putting in the private key into putty when i connect and also tried using pageant. neither of them let me connect.
One problem that i found is that the rsa fingerprint that i see is from the rsa public key on the root account and not the rsa key on the user account that i am trying to log in as.
i have set the folder permissions and the file permissions on both ~./ssh and authorized_keys correctly.
here is my configuration
Hostname freenas.local Edit
Build FreeNAS-9.10-STABLE-201603252134 (412fb1c)
Platform Intel(R) Pentium(R) CPU G3258 @ 3.20GHz
Memory 7824MB
System Time Tue Apr 05 08:48:26 PDT 2016
Uptime 8:48AM up 9:05, 0 users
Load Average 0.09, 0.16, 0.16
here is a log of what is happening when i connect with filezillla
Status: Connecting to 192.168.1.100:4233...
Response: fzSftp started, protocol_version=4
Command: keyfile "C:\Users\Abbas\Desktop\test1"
Command: open "amamdani@192.168.1.100" 4233
Command: Pass:
Error: Authentication failed.
Error: Critical error: Could not connect to server
Status: Disconnected from server
Status: Connecting to 192.168.1.100:4233...
Response: fzSftp started, protocol_version=4
Command: keyfile "C:\Users\Abbas\Desktop\test1"
Command: open "amamdani@192.168.1.100" 4233
Command: Pass:
Error: Authentication failed.
Error: Critical error: Could not connect to server
here is a log of what is happening when i connect with putty
2016-04-05 08:16:52 Looking up host "192.168.1.100"
2016-04-05 08:16:52 Connecting to 192.168.1.100 port 4233
2016-04-05 08:16:52 We claim version: SSH-2.0-PuTTY_Release_0.66
2016-04-05 08:16:52 Server version: SSH-2.0-OpenSSH_7.2 FreeBSD-20160310
2016-04-05 08:16:52 Using SSH protocol version 2
2016-04-05 08:16:52 Doing Diffie-Hellman group exchange
2016-04-05 08:16:52 Doing Diffie-Hellman key exchange with hash SHA-256
2016-04-05 08:16:53 Host key fingerprint is:
2016-04-05 08:16:53 ssh-rsa 2048 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2016-04-05 08:16:53 Initialised AES-256 SDCTR client->server encryption
2016-04-05 08:16:53 Initialised HMAC-SHA-256 client->server MAC algorithm
2016-04-05 08:16:53 Initialised AES-256 SDCTR server->client encryption
2016-04-05 08:16:53 Initialised HMAC-SHA-256 server->client MAC algorithm
2016-04-05 08:16:53 Pageant is running. Requesting keys.
2016-04-05 08:16:53 Pageant has 2 SSH-2 keys
2016-04-05 08:16:57 Trying Pageant key #0
2016-04-05 08:16:57 Server refused our key
2016-04-05 08:16:57 Trying Pageant key #1
2016-04-05 08:16:57 Server refused our key
2016-04-05 08:18:53 Server unexpectedly closed network connection
Ive been stuck on this for almost two days now, and have no idea where to look for a solution. any help would be appreciated!
thanks
Anyways, my freenas has been set up and i can access files remotely using SSH and a user login. Its also available on the local network and i can transfer files thru CIFS.
The issue i am having is when i turn off allow password authentication and try to use RSA keys.
I generated them using puttygen and put the public key in the "SSH Public Key field" under the user profile. I have tried manually putting in the private key into putty when i connect and also tried using pageant. neither of them let me connect.
One problem that i found is that the rsa fingerprint that i see is from the rsa public key on the root account and not the rsa key on the user account that i am trying to log in as.
i have set the folder permissions and the file permissions on both ~./ssh and authorized_keys correctly.
here is my configuration
Hostname freenas.local Edit
Build FreeNAS-9.10-STABLE-201603252134 (412fb1c)
Platform Intel(R) Pentium(R) CPU G3258 @ 3.20GHz
Memory 7824MB
System Time Tue Apr 05 08:48:26 PDT 2016
Uptime 8:48AM up 9:05, 0 users
Load Average 0.09, 0.16, 0.16
here is a log of what is happening when i connect with filezillla
Status: Connecting to 192.168.1.100:4233...
Response: fzSftp started, protocol_version=4
Command: keyfile "C:\Users\Abbas\Desktop\test1"
Command: open "amamdani@192.168.1.100" 4233
Command: Pass:
Error: Authentication failed.
Error: Critical error: Could not connect to server
Status: Disconnected from server
Status: Connecting to 192.168.1.100:4233...
Response: fzSftp started, protocol_version=4
Command: keyfile "C:\Users\Abbas\Desktop\test1"
Command: open "amamdani@192.168.1.100" 4233
Command: Pass:
Error: Authentication failed.
Error: Critical error: Could not connect to server
here is a log of what is happening when i connect with putty
2016-04-05 08:16:52 Looking up host "192.168.1.100"
2016-04-05 08:16:52 Connecting to 192.168.1.100 port 4233
2016-04-05 08:16:52 We claim version: SSH-2.0-PuTTY_Release_0.66
2016-04-05 08:16:52 Server version: SSH-2.0-OpenSSH_7.2 FreeBSD-20160310
2016-04-05 08:16:52 Using SSH protocol version 2
2016-04-05 08:16:52 Doing Diffie-Hellman group exchange
2016-04-05 08:16:52 Doing Diffie-Hellman key exchange with hash SHA-256
2016-04-05 08:16:53 Host key fingerprint is:
2016-04-05 08:16:53 ssh-rsa 2048 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2016-04-05 08:16:53 Initialised AES-256 SDCTR client->server encryption
2016-04-05 08:16:53 Initialised HMAC-SHA-256 client->server MAC algorithm
2016-04-05 08:16:53 Initialised AES-256 SDCTR server->client encryption
2016-04-05 08:16:53 Initialised HMAC-SHA-256 server->client MAC algorithm
2016-04-05 08:16:53 Pageant is running. Requesting keys.
2016-04-05 08:16:53 Pageant has 2 SSH-2 keys
2016-04-05 08:16:57 Trying Pageant key #0
2016-04-05 08:16:57 Server refused our key
2016-04-05 08:16:57 Trying Pageant key #1
2016-04-05 08:16:57 Server refused our key
2016-04-05 08:18:53 Server unexpectedly closed network connection
Ive been stuck on this for almost two days now, and have no idea where to look for a solution. any help would be appreciated!
thanks