freeCodeCamp/guide/english/bash/bash-ssh/index.md

1.0 KiB

title
Bash ssh

Bash command: ssh

This command is used to connect to a remote computer, for example ssh 123.456.789.012 will try to establish a connection with that host. The address of the remote computer can be provided using an IP address or, if provided, an identifier.

If the remote computer requires the user to login, they can use the form ssh username@remote_address, which will then prompt them for the user password on a successful connection.

It also has command line options which can be found on the SSH website.

One thing to note, if the server is configured to listen to any port other than 22, then you have to use -p option to specify the port. For example: ssh -p 2024 123.456.789.012.

If the remote computer requires user login, the form ssh username@remote_address can be used, which will then prompt for the user password on successful connection.

More Information: