To connect to a remote server using SSH in Linux, follow these steps:
- Open your terminal.
- Run the SSH command:
ssh username@server_ip_or_hostname
- Replace
usernamewith your server’s username andserver_ip_or_hostnamewith the IP address or hostname of the server. - For example:
ssh root@192.168.1.100
- If prompted, enter the password for the specified user.