I have a Ubuntu 24 VM on Azure which i am trying to login by ssh and .pem file. It used to connect me successfully earlier but now its getting stuck at debug1: pledge: filesystem
in the debug mode.Below is the log after running the command ssh -i myazurekey.pem user@xx.xx.xx.xx -vvv
debug1: Reading configuration data /home/abhishek/.ssh/configdebug1: Reading configuration data /etc/ssh/ssh_configdebug3: /etc/ssh/ssh_config line 55: Including file /etc/ssh/ssh_config.d/50-redhat.conf depth 0debug1: Reading configuration data /etc/ssh/ssh_config.d/50-redhat.confdebug2: checking match for 'final all' host xx.xx.xx.xx originally xx.xx.xx.xxdebug3: /etc/ssh/ssh_config.d/50-redhat.conf line 3: not matched 'final'debug2: match not founddebug3: /etc/ssh/ssh_config.d/50-redhat.conf line 5: Including file /etc/crypto-policies/back-ends/openssh.config depth 1 (parse only)debug1: Reading configuration data /etc/crypto-policies/back-ends/openssh.configdebug3: gss kex names ok: [gss-curve25519-sha256-,gss-nistp256-sha256-,gss-group14-sha256-,gss-group16-sha512-]debug3: kex names ok: [curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512]debug1: configuration requests final Match passdebug2: resolve_canonicalize: hostname xx.xx.xx.xx is addressdebug1: re-parsing configurationdebug1: Reading configuration data /home/abhishek/.ssh/configdebug1: Reading configuration data /etc/ssh/ssh_configdebug3: /etc/ssh/ssh_config line 55: Including file /etc/ssh/ssh_config.d/50-redhat.conf depth 0debug1: Reading configuration data /etc/ssh/ssh_config.d/50-redhat.confdebug2: checking match for 'final all' host xx.xx.xx.xx originally xx.xx.xx.xxdebug3: /etc/ssh/ssh_config.d/50-redhat.conf line 3: matched 'final'debug2: match founddebug3: /etc/ssh/ssh_config.d/50-redhat.conf line 5: Including file /etc/crypto-policies/back-ends/openssh.config depth 1debug1: Reading configuration data /etc/crypto-policies/back-ends/openssh.configdebug3: gss kex names ok: [gss-curve25519-sha256-,gss-nistp256-sha256-,gss-group14-sha256-,gss-group16-sha512-]debug3: kex names ok: [curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512]debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/home/abhishek/.ssh/known_hosts'debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/home/abhishek/.ssh/known_hosts2'debug3: ssh_connect_direct: enteringdebug1: Connecting to xx.xx.xx.xx [xx.xx.xx.xx] port 22.debug3: set_sock_tos: set socket 3 IP_TOS 0x48debug1: Connection established.debug1: identity file myazurekey.pem type 3debug1: identity file myazurekey.pem-cert type -1debug1: Local version string SSH-2.0-OpenSSH_9.3debug1: Remote protocol version 2.0, remote software version OpenSSH_9.6p1 Ubuntu-3ubuntu13.4debug1: compat_banner: match: OpenSSH_9.6p1 Ubuntu-3ubuntu13.4 pat OpenSSH* compat 0x04000000debug2: fd 3 setting O_NONBLOCKdebug1: Authenticating to xx.xx.xx.xx:22 as 'abhishek'debug3: record_hostkey: found key type ED25519 in file /home/abhishek/.ssh/known_hosts:4debug3: load_hostkeys_file: loaded 1 keys from xx.xx.xx.xxdebug1: load_hostkeys: fopen /home/abhishek/.ssh/known_hosts2: No such file or directorydebug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directorydebug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directorydebug3: order_hostkeyalgs: have matching best-preference key type ssh-ed25519-cert-v01@openssh.com, using HostkeyAlgorithms verbatimdebug3: send packet: type 20debug1: SSH2_MSG_KEXINIT sentdebug3: receive packet: type 20debug1: SSH2_MSG_KEXINIT receiveddebug2: local client KEXINIT proposaldebug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,ext-info-c,kex-strict-c-v00@openssh.comdebug2: host key algorithms: ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,sk-ssh-ed25519-cert-v01@openssh.com,sk-ecdsa-sha2-nistp256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,rsa-sha2-512,rsa-sha2-256debug2: ciphers ctos: aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,aes256-ctr,aes128-gcm@openssh.com,aes128-ctrdebug2: ciphers stoc: aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,aes256-ctr,aes128-gcm@openssh.com,aes128-ctrdebug2: MACs ctos: hmac-sha2-256-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha2-256,hmac-sha1,umac-128@openssh.com,hmac-sha2-512debug2: MACs stoc: hmac-sha2-256-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha2-256,hmac-sha1,umac-128@openssh.com,hmac-sha2-512debug2: compression ctos: none,zlib@openssh.com,zlibdebug2: compression stoc: none,zlib@openssh.com,zlibdebug2: languages ctos: debug2: languages stoc: debug2: first_kex_follows 0 debug2: reserved 0 debug2: peer server KEXINIT proposaldebug2: KEX algorithms: sntrup761x25519-sha512@openssh.com,curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,ext-info-s,kex-strict-s-v00@openssh.comdebug2: host key algorithms: rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.comdebug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.comdebug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1debug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1debug2: compression ctos: none,zlib@openssh.comdebug2: compression stoc: none,zlib@openssh.comdebug2: languages ctos: debug2: languages stoc: debug2: first_kex_follows 0 debug2: reserved 0 debug3: kex_choose_conf: will use strict KEX orderingdebug1: kex: algorithm: curve25519-sha256debug1: kex: host key algorithm: ssh-ed25519debug1: kex: server->client cipher: aes256-gcm@openssh.com MAC: <implicit> compression: nonedebug1: kex: client->server cipher: aes256-gcm@openssh.com MAC: <implicit> compression: nonedebug1: kex: curve25519-sha256 need=32 dh_need=32debug1: kex: curve25519-sha256 need=32 dh_need=32debug3: send packet: type 30debug1: expecting SSH2_MSG_KEX_ECDH_REPLYdebug3: receive packet: type 31debug1: SSH2_MSG_KEX_ECDH_REPLY receiveddebug1: Server host key: ssh-ed25519 SHA256:T562O11Gjc1wVG9V0rMKDzcQZgfftYIbpplIQYaWE+Edebug3: record_hostkey: found key type ED25519 in file /home/abhishek/.ssh/known_hosts:4debug3: load_hostkeys_file: loaded 1 keys from xx.xx.xx.xxdebug1: load_hostkeys: fopen /home/abhishek/.ssh/known_hosts2: No such file or directorydebug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directorydebug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directorydebug1: Host '98.70.9.184' is known and matches the ED25519 host key.debug1: Found key in /home/abhishek/.ssh/known_hosts:4debug3: send packet: type 21debug1: ssh_packet_send2_wrapped: resetting send seqnr 3debug2: ssh_set_newkeys: mode 1debug1: rekey out after 4294967296 blocksdebug1: SSH2_MSG_NEWKEYS sentdebug1: expecting SSH2_MSG_NEWKEYSdebug3: receive packet: type 21debug1: ssh_packet_read_poll2: resetting read seqnr 3debug1: SSH2_MSG_NEWKEYS receiveddebug2: ssh_set_newkeys: mode 0debug1: rekey in after 4294967296 blocksdebug3: ssh_get_authentication_socket_path: path '/run/user/1000/ssh-agent.socket'debug1: get_agent_identities: bound agent to hostkeydebug1: get_agent_identities: ssh_fetch_identitylist: agent contains no identitiesdebug1: Will attempt key: myazurekey.pem ED25519 SHA256:v2iCGB8xUidMBUwsuyY/mcpJ++LljmWcPQJJFSdAY8A explicitdebug2: pubkey_prepare: donedebug3: send packet: type 5debug3: receive packet: type 7debug1: SSH2_MSG_EXT_INFO receiveddebug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,rsa-sha2-512,rsa-sha2-256>debug1: kex_input_ext_info: publickey-hostbound@openssh.com=<0>debug1: kex_input_ext_info: ping@openssh.com (unrecognised)debug3: receive packet: type 6debug2: service_accept: ssh-userauthdebug1: SSH2_MSG_SERVICE_ACCEPT receiveddebug3: send packet: type 50debug3: receive packet: type 51debug1: Authentications that can continue: publickeydebug3: start over, passed a different list publickeydebug3: preferred gssapi-with-mic,publickey,keyboard-interactive,passworddebug3: authmethod_lookup publickeydebug3: remaining preferred: keyboard-interactive,passworddebug3: authmethod_is_enabled publickeydebug1: Next authentication method: publickeydebug1: Offering public key: myazurekey.pem ED25519 SHA256:v2iCGB8xUidMBUwsuyY/mcpJ++LljmWcPQJJFSdAY8A explicitdebug3: send packet: type 50debug2: we sent a publickey packet, wait for replydebug3: receive packet: type 60debug1: Server accepts key: myazurekey.pem ED25519 SHA256:v2iCGB8xUidMBUwsuyY/mcpJ++LljmWcPQJJFSdAY8A explicitdebug3: sign_and_send_pubkey: using publickey-hostbound-v00@openssh.com with ED25519 SHA256:v2iCGB8xUidMBUwsuyY/mcpJ++LljmWcPQJJFSdAY8Adebug3: sign_and_send_pubkey: signing using ssh-ed25519 SHA256:v2iCGB8xUidMBUwsuyY/mcpJ++LljmWcPQJJFSdAY8Adebug3: send packet: type 50debug3: receive packet: type 52Authenticated to xx.xx.xx.xx ([xx.xx.xx.xx]:22) using "publickey".debug1: pkcs11_del_provider: called, provider_id = (null)debug1: channel 0: new session [client-session] (inactive timeout: 0)debug3: ssh_session2_open: channel_new: 0debug2: channel 0: send opendebug3: send packet: type 90debug1: Requesting no-more-sessions@openssh.comdebug3: send packet: type 80debug1: Entering interactive session.debug1: pledge: filesystemdebug3: client_repledge: enter
Tried restarting the VM but still no luck.