SSH enables you to log in to a remote host securely, primarily by system administrators. The log-in process could be slow or is not fast enough for you. The …
Read More
Public and private key pairs are used for publickey authentication method in SSH. When creating the SSH key pair for publickey authentication, you can assign a passphrase to the …
Read More
Using a bastion host or jump server allows for easier security management as hosts that are not public-facing do not need to be secured as much as the public-facing …
Read More
The public-key authentication method requires you to copy your public SSH key to the server's authorized_keys file. Your public key could be copied manually or by using tools such …
Read More
You can access remote filesystem as a local filesystem by mounting the remote filesystem using sshfs. This is similar to other remote filesystem implementations such as SAMBA/CIFS or NFS. …
Read More
You can easily create an SSH
key pair by using ssh-keygen
as in the following example.
$ ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/home/user/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/user/.ssh/id_rsa. Your public key has been saved in /home/user/.ssh/id_rsa.pub. The key fingerprint is: 1a:6c:a4:94:df:e0:19:ec:85:b0:3f:27:e4:a1:de:65 user@host The key's randomart image is: +--[ RSA 2048]----+ | | | . | | o E | | O o | | c @ S | | o A @ | | . E . | | . = | | . | +-----------------+
There are a few things that you might want need to take note;
RSA
key pair will be generated by default. You can use different key type by using -t
option and specify any of the supported key types
dsa ecdsa ed25519 rsa rsa1
~/.ssh/id_rsa
while the public key will be stored in ~/.ssh/id_rsa.pub
. You can specify other location when prompted during the key generation process if you already have a key pair at the default locationSSH
login