SSH (Secure Shell) is a powerful tool for securely accessing remote systems. Mastering a few handy shortcuts and tricks can significantly improve your workflow. Here are 10 useful SSH command tips you should know.
1. Quick SSH Login
Instead of typing:
ssh username@hostname -p port_number Use a shorter format:
ssh user@host -p port2. Execute a Single Command Remotely
Run a command without entering an interactive session:
ssh user@host 'ls -l /var/www' Example:
ssh user@host 'ls -l /var/www' 