tried as you suggested
i am still getting same error
thor@jump_host ~$ sudo apt update
sudo: apt: command not found
thor@jump_host ~$ sudo -i
root@jump_host ~# sudo apt update
sudo: apt: command not found
root@jump_host ~# sudo ssh root@thor@jump_host
The authenticity of host ‘jump_host (172.16.238.3)’ can’t be established.
ECDSA key fingerprint is SHA256:TWCWJ84PXEbPS5xKFyRhWr3x7hmKVLJHvkdszbZqifI.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added ‘jump_host,172.16.238.3’ (ECDSA) to the list of known hosts.
root@thor@jump_host’s password:
root@thor@jump_host: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
root@jump_host ~# ssh [email protected]
root172.16.238.3’s password:
root172.16.238.3: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).