The ssh Command
Connect securely to a remote machine over the network to run commands.
Basic Usage
ssh hostname # Logs in using your current username on the remote host
ssh username@hostname # Logs in with a specific username
Connection Steps
-
First connection may prompt to verify the host key:
-
Enter the password for the remote user.
-
After login, you can run commands remotely:
4. Exit Remote Session :exit* Returns you to the local machine. * Be careful: runningexitin nested SSH sessions may close your terminal window.
sshis essential for remote system administration and secure connections.