SSH Security Lab
Lab Mission
"Establish an SSH connection to
20.20.10.26
. Navigate the file system to find
flag.txt
and identify its content."
What is the content of 'flag.txt'?
A. sam@bob
B. bob2@sam
C. bob@sam
D. sam2@bob
Submit Answer
Hint:
Files might not be in the current directory. Use
ls
to see contents and
cd [dir]
to move around. Use
cat [file]
to read.
Explanation:
After login,
ls
shows
flag.txt
in the home directory. Running
cat flag.txt
reveals
bob@sam
.
Hint
Solution
Remote Terminal
ssh sam@20.20.10.26
80x24
Target: 20.20.10.26 (Port 22)
Login: sam
Credentials: sam / admin@l23
Connect via SSH
ls
ls -la
pwd
cd documents
cd ..
cat flag.txt
clear
help
Reset Terminal