I have a question regarding the first lab.
LAB: LOGGING IN AND SYSTEM DOCUMENTATION
In the first lab it prompts me to use the ssh command to do the following:
SSH into dev-host01 host from centos-host and create a blank file called /home/bob/myfile in dev-host01 host.
You should be able to create the file using touch /home/bob/myfile command.
Please find below the SSH credentials for dev-host01 host:
Host: dev-host01
Username: bob
Password: *********
Remember to type exit when you finish this task.
What I tried:
- Recognized a mistake
[bob@centos-host ~]$ ssh centos-host@dev-host01
The authenticity of host 'dev-host01 (192.19.26.3)' can't be established.
ECDSA key fingerprint is SHA256:hfO5K6iTZOS3EJ1YtBH0Kls1Yg/bSJe6Pwg2mXWvZW0.
Are you sure you want to continue connecting (yes/no/[fingerprint])? no
Host key verification failed.
In this block above, I attempted to connect to some user (wrong name) at some domain dev-host01
. I recognized the mistake and typed no
.
- Making another mistake?
[bob@centos-host ~]$ ssh bob@dev-host01
The authenticity of host 'dev-host01 (192.19.26.3)' can't be established.
ECDSA key fingerprint is SHA256:hfO5K6iTZOS3EJ1YtBH0Kls1Yg/bSJe6Pwg2mXWvZW0.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'dev-host01,192.19.26.3' (ECDSA) to the list of known hosts.
bob@dev-host01's password:
Permission denied, please try again.
bob@dev-host01's password:
Permission denied, please try again.
bob@dev-host01's password:
Last failed login: Fri Oct 20 12:25:23 UTC 2023 from 192.19.26.12 on ssh:notty
There were 2 failed login attempts since the last successful login.
In this block you can see that I have tried to connect to bob@dev-host01
. I thought that was correct? However, the password was not correct. I am 100% sure I typed the correct password.
Big Questions
- Did I do something wrong?
- What is the correct command? I thought it was
ssh user_name@host_name
. - I forgot to do this
Remember to type exit when you finish this task.
. Is this a problem? Or does the environment tear itself down after some time? - Did I do something that could compromise my own device’s security? Or is this all running as a sandboxed environment? Who did I connect to?