Files
freeCodeCamp/guide/english/bash/bash-ssh/index.md
David Abutbul ee87987fa3 some article refresh (#21837)
* some article refresh

this had some misinformation in it (identifiers as hosts in SSH??) 
fixed it and added some basic information, why this tool is needed and replaced predecessor telnet
also some basic usage

* Update index.md
2018-11-17 10:24:42 -07:00

22 lines
1018 B
Markdown

---
title: Bash ssh (Secure SHell)
---
## Bash command: ssh
**Used to securly connect to a remote server** using Diffie-Hellman algorythm for key exchange, ssh replaces the archaic telnet program for remote shell sessions.
for example `ssh 192.0.2.1` will try to establish a connection with that host. The
address of the remote computer can be provided using an IP address resolvable hostname or FQDN.
If you wish to use a different username then the one initiating the session (i.e. you're using ssh from root but wish to log in as different user to a remote system), the form `ssh username@remote_address` can be used, which will then prompt for the user password on successful connection.
Basic usage arguments:
- `-p` - use a different port then configured in ssh_config file (usually 22)
- `-u` - pass username outside of hostname URI
- `-i` - use a different location for private key
### More Information:
* [Wikipedia](https://en.wikipedia.org/wiki/Secure_Shell)
* [SSH](https://www.ssh.com/ssh/command)