Permission Denied - While trying to ssh into VM
Hi,
I have two RHEL 8 VMs set up on my PC.
I set the first one up yesterday and was able to ssh into it.
I just did
ssh user1@192.168.0.110
and then entered the password.
I have set up this IP manually in the networking configuration during setup.
Today, for some reason, I am not able to ssh into it. I get the following output.
[tkhara@localhost ~]$ ssh user1@192.168.0.110
user1@192.168.0.110's password:
Permission denied, please try again.
user1@192.168.0.110's password:
[tkhara@localhost ~]$ ssh root@192.168.0.110
root@192.168.0.110's password:
Permission denied, please try again.
root@192.168.0.110's password:
I got the following verbose output also:
[tkhara@localhost ~]$ ssh -v root@192.168.0.110
OpenSSH_8.0p1, OpenSSL 1.1.1g FIPS 21 Apr 2020
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Reading configuration data /etc/ssh/ssh_config.d/05-redhat.conf
debug1: Reading configuration data /etc/crypto-policies/back-ends/openssh.config
debug1: configuration requests final Match pass
debug1: re-parsing configuration
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Reading configuration data /etc/ssh/ssh_config.d/05-redhat.conf
debug1: Reading configuration data /etc/crypto-policies/back-ends/openssh.config
debug1: Connecting to 192.168.0.110 [192.168.0.110] port 22.
debug1: Connection established.
debug1: identity file /home/tkhara/.ssh/id_rsa type 0
debug1: identity file /home/tkhara/.ssh/id_rsa-cert type -1
debug1: identity file /home/tkhara/.ssh/id_dsa type -1
debug1: identity file /home/tkhara/.ssh/id_dsa-cert type -1
debug1: identity file /home/tkhara/.ssh/id_ecdsa type -1
debug1: identity file /home/tkhara/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/tkhara/.ssh/id_ed25519 type -1
debug1: identity file /home/tkhara/.ssh/id_ed25519-cert type -1
debug1: identity file /home/tkhara/.ssh/id_xmss type -1
debug1: identity file /home/tkhara/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.0
debug1: Remote protocol version 2.0, remote software version OpenSSH_8.0
debug1: match: OpenSSH_8.0 pat OpenSSH* compat 0x04000000
debug1: Authenticating to 192.168.0.110:22 as 'root'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: aes256-gcm@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: aes256-gcm@openssh.com MAC: <implicit> compression: none
debug1: kex: curve25519-sha256 need=32 dh_need=32
debug1: kex: curve25519-sha256 need=32 dh_need=32
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:+yPKoOQxFkFQFEFrgkU7hQQGtDAaXTmV+XerDg9mMn8
debug1: Host '192.168.0.110' is known and matches the ECDSA host key.
debug1: Found key in /home/tkhara/.ssh/known_hosts:1
debug1: rekey out after 4294967296 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 4294967296 blocks
debug1: Will attempt key: /home/tkhara/.ssh/id_rsa RSA SHA256:AQDprFDzpo2eym0ob7s5TYDxf1wZV5PsUVl4gCpxlro agent
debug1: Will attempt key: /home/tkhara/.ssh/id_dsa
debug1: Will attempt key: /home/tkhara/.ssh/id_ecdsa
debug1: Will attempt key: /home/tkhara/.ssh/id_ed25519
debug1: Will attempt key: /home/tkhara/.ssh/id_xmss
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure. Minor code may provide more information
No Kerberos credentials available (default cache: KCM:)
debug1: Unspecified GSS failure. Minor code may provide more information
No Kerberos credentials available (default cache: KCM:)
debug1: Next authentication method: publickey
debug1: Offering public key: /home/tkhara/.ssh/id_rsa RSA SHA256:AQDprFDzpo2eym0ob7s5TYDxf1wZV5PsUVl4gCpxlro agent
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug1: Trying private key: /home/tkhara/.ssh/id_dsa
debug1: Trying private key: /home/tkhara/.ssh/id_ecdsa
debug1: Trying private key: /home/tkhara/.ssh/id_ed25519
debug1: Trying private key: /home/tkhara/.ssh/id_xmss
debug1: Next authentication method: password
Any guidance to solve this is appreciated.
Thank you.