LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can't seem to SSH from Mint into Server 2008 (https://www.linuxquestions.org/questions/linux-newbie-8/cant-seem-to-ssh-from-mint-into-server-2008-a-4175518527/)

m1ckrz 09-14-2014 03:08 AM

Can't seem to SSH from Mint into Server 2008
 
Trying to SSH into Win Server 2008 from Linux Mint. Running FreeSSHD (SSH required, password disabled) on port 2222.

I have public key in FreeSSHD\keys
Private key in %HOME%\user\.ssh

When I try to SSH from terminal, key passphrase is accepted but then it requests "user password". Windows user password returns "Permission denied".

As far as I can tell everything is configured correctly. I can only assume it is a permissions issue, but my user is a domain admin and I have allowed necessary ports, firewall rules, etc.

Any help will be greatly appreciated. Thanks!

btmiller 09-14-2014 02:11 PM

You can run ssh with the "-v" option (for verbose). You can use "v" up to 2 times (e.g. "ssh -vvv user@host") to get increasingly more verbose debug information. I'm not sure how much it will help, though. This looks like an issue on the Windows end and not the Linux side. Is there a way to run FreeSSHD in debug mode? If so, that might provide some useful information about what's going on.

m1ckrz 09-14-2014 06:15 PM

Here's the output from terminal. This is with CYGWINN on Server '08. Same issue. "Permission denied". I have confirmed the correct passwords, both passphrase and Win user:

Code:

ssh -v -p 22 -i /home/m1ckrz/.ssh/id_rsa m1ckrz@10.11.1.22
OpenSSH_6.2p2 Ubuntu-6ubuntu0.4, OpenSSL 1.0.1e 11 Feb 2013
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to 10.11.1.22 [10.11.1.22] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /home/m1ckrz/.ssh/id_rsa type -1
debug1: identity file /home/m1ckrz/.ssh/id_rsa-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.2p2 Ubuntu-6ubuntu0.4
debug1: Remote protocol version 2.0, remote software version WeOnlyDo 2.1.3
debug1: no match: WeOnlyDo 2.1.3
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: sending SSH2_MSG_KEXDH_INIT
debug1: expecting SSH2_MSG_KEXDH_REPLY
debug1: Server host key: RSA f6:cf:a9:fe:42:6e:21:73:84:1e:08:25:b7:b2:5b:38
debug1: Host '10.11.1.22' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:1
debug1: ssh_rsa_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: password,publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /home/m1ckrz/.ssh/id_rsa
debug1: key_parse_private_pem: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
Enter passphrase for key '/home/m1ckrz/.ssh/id_rsa':
debug1: read PEM private key done: type RSA
debug1: Authentications that can continue: password,publickey
debug1: Next authentication method: password
m1ckrz@10.11.1.22's password:
debug1: Authentications that can continue: password,publickey
Permission denied, please try again.
m1ckrz@10.11.1.22's password:

debug1: Authentications that can continue: password,publickey
Permission denied, please try again.
m1ckrz@10.11.1.22's password:
Received disconnect from 10.11.1.22: 2: Too many attempts.



All times are GMT -5. The time now is 02:58 AM.