ssh command

ssh is a Unix command used for remotely connecting to other servers using SSH protocol. ssh is sometimes called the ssh client component, while sshd is the server component of SSH software.
For a comprehensive overview, see the SSH Reference.
The simplest use is to invoke ssh command with a single parameter which is a remote server’s hostname or IP address:
{% highlight command %} greys@maverick:~ $ ssh vps1.unixtutorial.org Last login: Fri Oct 5 11:59:37 2018 from 212.129.78.186 greys@vps1:~$ {% endhighlight %}
Default port for SSH service is 22, but it’s possible to change it so you may have to specify it as an option for the ssh command:
{% highlight command %} greys@maverick:~ $ ssh -p 212 s3 Last login: Thu Oct 4 13:41:11 2018 from 212.129.78.20 CentOS Linux release 7.2.1511 (Core) [greys@s3 ~]$ {% endhighlight %}
See Also
SSH Basics
SSH Keys & Authentication
- How To: Generate SSH Key
- How To: Generate ed25519 SSH key
- How To: Change SSH key passphrase
- How To: Inspect SSH key fingerprints
- How To: Find SSH key using Fingerprint
- Project: Upgrading RSA keys to Ed25519
- SSH Agent and How to Use It
- Deploy Your SSH key To Remote Server
Passwordless SSH
SSH Port & Configuration
- SSH port
- SSH port forwarding
- How To: Check SSH Port Status
- Test SSHd config on a different SSH port
- Using Multiple SSH Ports
- Most Important sshd Configuration Options
- Ubuntu SSH: How To Enable Secure Shell in Ubuntu
Troubleshooting
Advanced Topics
- Important SSH server configuration options
- Using multiple SSH ports
- How To: Check SSH key fingerprint
- Unix Reference
- id – print user identity