Linux User non-interactive shell task failed

thor@jump_host /$ sudo useradd -s /sbin/nologin javed

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

[sudo] password for thor:

Asking for root password.I don’t no the password Any body can help. I am new to Linux

Hello Sud,
I don’t believe you are required to do any task on jump_host. I think you ssh to the host you are ask to do work on as a specific user. All accounts are provided in the wiki. Read the instructions again.

[sudo] password for thor:
this is not asking for roots password. It is asking for thor’s password. When you login to the correct server, with the right user, when you do sudo, provide that users password. They are all in the wiki.

As per this task i have done every thing . but getting the below mentioned error

create a user named ravi with a non-interactive shell in the app01 server.

thor@jump_host /$ ssh app01
ssh: Could not resolve hostname app01: Name or service not known
thor@jump_host /$ hostname
jump_host.stratos.xfusioncorp.com
thor@jump_host /$ cat etc/hosts
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
172.16.238.10 stapp01
172.16.238.11 stapp02
172.16.238.12 stapp03172.16.238.2 jump_host.stratos.xfusioncorp.com jump_host
172.16.239.5 jump_host.stratos.xfusioncorp.com jump_host
thor@jump_host /$ ssh stapp01
The authenticity of host ‘stapp01 (172.16.238.10)’ can’t be established.
ECDSA key fingerprint is SHA256:+Yk6KSzW9D3uqOP1iib94uDIajBcr0scScTyypjzmCk.
ECDSA key fingerprint is MD5:05:18:26:79:98:f2:82:11:14:27:e6:99:69:2f:c0:8c.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added ‘stapp01,172.16.238.10’ (ECDSA) to the list of known hosts.
thor@stapp01’s password:
Permission denied, please try again.
thor@stapp01’s password:
Permission denied, please try again.
thor@stapp01’s password:
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).

thor is not a user on stapp01. That is why it does not work. Below is what is listed on the wiki.
tony is the user on stapp01 and his password is Ir0nMan@n. So to login to stapp01, you will initiate it from jump_host server as such:

ssh tony@stapp01
or
ssh [email protected]

Once logged in, then you can do the task:
sudo useradd -s /sbin/nologin javed

You will then be asked for tony’s sudo password
[sudo] password for tony:
the password will be tony’s password (Ir0nMan@n)

stapp01 172.16.238.10 stapp01.stratos.xfusioncorp.com tony Ir0nM@n Nautilus App 1
stapp02 172.16.238.11 stapp02.stratos.xfusioncorp.com steve Am3ric@ Nautilus App 2
stapp03 172.16.238.12 stapp03.stratos.xfusioncorp.com banner BigGr33n Nautilus App 3
stlb01 172.16.238.14 stlb01.stratos.xfusioncorp.com loki Mischi3f Nautilus HTTP LBR
stdb01 172.16.239.10 stdb01.stratos.xfusioncorp.com peter Sp!dy Nautilus DB Server
ststor01 172.16.238.15 ststor01.stratos.xfusioncorp.com natasha Bl@kW Stork DC Storage Filer
stbkp01 172.16.238.16 stbkp01.stratos.xfusioncorp.com clint H@wk3y3 Nautilus Backup Server
stmail01 172.16.238.17 stmail01.stratos.xfusioncorp.com groot Gr00T123 Nautilus Mail Server
jump_host Dynamic jump_host.stratos.xfusioncorp.com thor mjolnir123 Jump Server to Access Stork DC

Task Completed Sir

Thanku