Quantcast
Image

Search Results for: configure-passwordless-login

How to speed up SSH authentication

By  •  December 2, 2021

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

How to manage passphrase of an SSH key

By  •  December 2, 2021

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

How to SSH via jump server or bastion host

By  •  December 2, 2021

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

How to add SSH public key to server

By  •  December 2, 2021

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

How to mount remote filesystem using SSH

By  •  December 2, 2021

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

How to generate SSH keypair

By  •  May 28, 2018

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;

  1. A 2048 bit 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
  2. The private key will be stored in ~/.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 location
  3. You can specify passphrase for your key pair when prompted but you’ll have to not set the passphrase to use passwordless SSH login

Top