SSH

Port 22

SSH Reference

Port 22

Overview

SSH (Secure Shell) provides secure remote access to systems. It operates on port 22 and provides an encrypted shell session.

Commands

ls ls [path]

Lists directory contents

lsls /home
cd cd <path>

Changes current directory

cd /home/usercd ..
pwd pwd

Prints current directory

pwd
cat cat <file>

Displays file contents

cat readme.txt
echo echo <text>

Prints text to terminal

echo Hello World
find find [path] -name <pattern>

Searches for files matching a pattern

find . -name "*.txt"find /home -name config
> command > file

Redirects output to file (overwrites)

echo "hello" > test.txtls > files.txt
>> command >> file

Appends output to file

echo "more" >> test.txt
exit exit

Closes the SSH session

exit
help help [command]

Shows available commands

helphelp ls

Tips

  • Type help or ? for command list
  • Type help <command> for details
  • Press Ctrl+L to clear terminal

Further Reading

RFC 4253 - Secure Shell Transport Layer Protocol ↗