How to make password less login in Linux
How to generate the Public and Private Key of our System
--==================================================================
How to make password less login in Linux
┌───────────────────────────────────────────────────────┐
│ • MobaXterm Personal Edition v11.1 • │
│ (X server, SSH client and network tools) │
│ │
│ ➤ Your computer drives are accessible through the /drives path │
│ ➤ Your DISPLAY is set to 10.20.100.52:0.0 │
│ ➤ When using SSH, your remote DISPLAY is automatically forwarded │
│ ➤ Each command status is specified by a special symbol (✔ or ✘) │
│ │
│ • Important: │
│ This is MobaXterm Personal Edition. The Professional edition │
│ allows you to customize MobaXterm for your company: you can add │
│ your own logo, your parameters, your welcome message and generate │
│ either an MSI installation package or a portable executable. │
│ We can also modify MobaXterm or develop the plugins you need. │
│ For more information: https://mobaxterm.mobatek.net/download.html │
└──────────────────────────────────────────────────────┘
[2019-05-13 11:16.00] ~
[manoj.kumar11.L-1LZ6152] ➤ pwd
/home/mobaxterm
✔
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
[2019-05-13 11:16.04] ~
[manoj.kumar11.L-1LZ6152] ➤ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/mobaxterm/.ssh/id_rsa):
/home/mobaxterm/.ssh/id_rsa already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/mobaxterm/.ssh/id_rsa.
Your public key has been saved in /home/mobaxterm/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:jlMsKPODSJHKeJe3p/M/h+f6UcKXtbmblCE1Yl/eXek manoj.kumar11@L-1LZ6152
The key's randomart image is:
+---[RSA 2048]----+
| |
| . .|
| o o ++|
|+ . o . .. =+O|
|oo+ + o S o.+E+|
|.o * . * +. +|
|. . o + o .. + |
| ..+ o o.. o|
| .o..oBo o |
+----[SHA256]-----+
✔
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
[2019-05-13 11:16.36] ~
[manoj.kumar11.L-1LZ6152] ➤ ll
total 2
lrwxrwxrwx 1 manoj.ku UsersGrp 36 Apr 30 15:54 Desktop -> /drives/C/Users/MANOJ~1.KUM/Desktop/
lrwxrwxrwx 1 manoj.ku UsersGrp 36 Apr 30 15:54 LauncherFolder -> /drives/C/PROGRA~2/Mobatek/MOBAXT~1/
lrwxrwxrwx 1 manoj.ku UsersGrp 37 Apr 30 15:54 MyDocuments -> /drives/C/Users/MANOJ~1.KUM/DOCUME~1/
-rw-r--r-- 1 manoj.ku UsersGrp 66 May 8 16:50 m1
✔
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
[2019-05-13 11:16.40] ~
[manoj.kumar11.L-1LZ6152] ➤ ll -a
total 10
drwxr-xr-x 1 manoj.ku UsersGrp 0 May 12 19:35 .
drwxr-xr-x 1 manoj.ku UsersGrp 0 Apr 30 15:54 ..
-rw-r--r-- 1 manoj.ku UsersGrp 3296 May 13 11:16 .bash_history
drwxr-xr-x 1 manoj.ku UsersGrp 0 Apr 30 16:00 .ssh
-rw-r--r-- 1 manoj.ku UsersGrp 4701 May 12 16:19 .viminfo
lrwxrwxrwx 1 manoj.ku UsersGrp 36 Apr 30 15:54 Desktop -> /drives/C/Users/MANOJ~1.KUM/Desktop/
lrwxrwxrwx 1 manoj.ku UsersGrp 36 Apr 30 15:54 LauncherFolder -> /drives/C/PROGRA~2/Mobatek/MOBAXT~1/
lrwxrwxrwx 1 manoj.ku UsersGrp 37 Apr 30 15:54 MyDocuments -> /drives/C/Users/MANOJ~1.KUM/DOCUME~1/
-rw-r--r-- 1 manoj.ku UsersGrp 66 May 8 16:50 m1
✔
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
[2019-05-13 11:16.45] ~
[manoj.kumar11.L-1LZ6152] ➤ cd .ssh/
✔
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
[2019-05-13 11:16.49] ~/.ssh
[manoj.kumar11.L-1LZ6152] ➤ pwd
/home/mobaxterm/.ssh
✔
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
[2019-05-13 11:16.51] ~/.ssh
[manoj.kumar11.L-1LZ6152] ➤ ll -a
total 7
drwxr-xr-x 1 manoj.ku UsersGrp 0 Apr 30 16:00 .
drwxr-xr-x 1 manoj.ku UsersGrp 0 May 12 19:35 ..
-rw-r--r-- 1 manoj.ku UsersGrp 1675 May 13 11:16 id_rsa
-rw-r--r-- 1 manoj.ku UsersGrp 405 May 13 11:16 id_rsa.pub
-rw-r--r-- 1 manoj.ku UsersGrp 788 May 9 18:17 known_hosts
✔
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
[2019-05-13 11:17.01] ~/.ssh
[manoj.kumar11.L-1LZ6152] ➤ cat id_rsa
-----BEGIN RSA PRIVATE KEY-----
MIIEogIBAAKCAQEAxW1fL956q2Sl8cAQq95Nem2vNUHX9zDdG/Q6EkXVYrhJkx8A
ySkEBhFePlKJ2n8qtXtt2WoeITDTCNjFfJZopzmKM7gIeDPSuI+oF0iqh+wo2wD8
ZsCjsK4LKSmlhXRN7z+ONrpKb2eOIgf7rEdQDqzDIIr+gho11OO176Onwo2dGpZi
5HU/dNPrNNm3ApyilylT0EdnPkfkoRohzKqXgViFmIDuL4kQGPMJsIx6NvQ/ThCK
GqoVJs1HKqBrlEVhPWX5sCB2ej/dR7CTcHUeFtnLXhArP2daDhC365kssiPu5L31
Peg+M9oKLJWm+QhS/q+L34u9BLD7SPdT1CjUfwIDAQABAoIBAD8HkvsaYTl00ZHj
yq7EMyIiAGzVT5iobf7tstiAmQaCZWLl4/9U6+bwBpGJEl/Cd6Um+cQOn/3is41A
f5QuBM1WjmvCllmh2eV4X6bHWUI5wDVjFDHN0LSobAHBPQnlPrhiJwoL4ZW9juAI
gm3W+pUkzMsH9QceTQ9hf4U5T2bJ9SbNL1XHXFIjOutH+MZpedypkA1J3WZDS7wF
kRY8I0hTXcX1hWhw+Mmgd3PVAiAYDYUMw3R/gTUPvL37mljKGq+9b6B5XdMrdfta
JzEka6aMtMT/AVZedaRYNQhSSsQWG9Awdr6PBCm/8tYc9EnWmFiWlAS18zThOSF5
8x5G+MkCgYEA94KKabZwU7NyZyjoZ//CVuPetavkKgpo79PeJamcPwQ4CC+h0EH0
5AAH+E7eCxyrUx6FqNBX3FcBD/jSbwaLO+nixkqHFEiAKFMWm9FHj3y1rylrOmML
cB1XgrOVuUcwt+SG2RtQ2gnE7vt2RBY/y9BiRLuSfj89qIenMyl7/70CgYEAzDMK
ONc2lTuz/lhHvQbQW3UxIpEpLIlZyW+Oj1SbPdKCaHiT/+pLil0BOaHWfjZKE9Oz
WS5jbax2deRQYwHu0ChuLQw+mx5p3KMQQHrIVixP8gvavE4v142R88o76naGtoz0
eiBw3Zc7h745HL5DItlNy+1X3LHkpZeQpkYZeusCgYBT0pbztECYaDZ/b2A+EGUN
rkB3gE5WWo4tYrBiSu3KfbBIPXFsqVm5ebU5R+R1GPGAxd54TI7k5WZLtXX2+d1f
nhcaFpVmriMRBQqsHJVCp/aT6tAQxwhRoO5JKm6zf8OlE7UDg/e+z/4s/WaRKoPS
j7EoG+pB7UMBd2eNsSf4dQKBgGVUGol0OjC5rKrVEdw6KmCH+fbmQ6FHExgDVKHJ
YTO/Z1kCJKcEk7G4TyhTJ8X/mKjYD5J8k3hT8YC06DMJPYFr3qhaACMnZ27GOAVX
KFyippU8zrFMty7moHtyamMBp/2kWpjTyk4bgr3sZhjeTSBY5uMABu6MFCMb3/qy
pGg7AoGAMtE3RhJE0LhYzZvPTNajOM4b8PbW9FmKjnMCFd3fIiNprju3xzPC/c3X
CtPAOFwP8HzJsXpTh0oNZgFciNNaiVYlMgnhk9Qayv0ibGiRxvhZI/MrC+0JFEVo
qwNKM5VBSap4IHWM5FGvsAwbrraWAQhVdEtKWdcf29t1u+PGXgk=
-----END RSA PRIVATE KEY-----
✔
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
[2019-05-13 11:17.10] ~/.ssh
[manoj.kumar11.L-1LZ6152] ➤
--==================================================================
How to make password less login in Linux
┌───────────────────────────────────────────────────────┐
│ • MobaXterm Personal Edition v11.1 • │
│ (X server, SSH client and network tools) │
│ │
│ ➤ Your computer drives are accessible through the /drives path │
│ ➤ Your DISPLAY is set to 10.20.100.52:0.0 │
│ ➤ When using SSH, your remote DISPLAY is automatically forwarded │
│ ➤ Each command status is specified by a special symbol (✔ or ✘) │
│ │
│ • Important: │
│ This is MobaXterm Personal Edition. The Professional edition │
│ allows you to customize MobaXterm for your company: you can add │
│ your own logo, your parameters, your welcome message and generate │
│ either an MSI installation package or a portable executable. │
│ We can also modify MobaXterm or develop the plugins you need. │
│ For more information: https://mobaxterm.mobatek.net/download.html │
└──────────────────────────────────────────────────────┘
[2019-05-13 11:16.00] ~
[manoj.kumar11.L-1LZ6152] ➤ pwd
/home/mobaxterm
✔
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
[2019-05-13 11:16.04] ~
[manoj.kumar11.L-1LZ6152] ➤ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/mobaxterm/.ssh/id_rsa):
/home/mobaxterm/.ssh/id_rsa already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/mobaxterm/.ssh/id_rsa.
Your public key has been saved in /home/mobaxterm/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:jlMsKPODSJHKeJe3p/M/h+f6UcKXtbmblCE1Yl/eXek manoj.kumar11@L-1LZ6152
The key's randomart image is:
+---[RSA 2048]----+
| |
| . .|
| o o ++|
|+ . o . .. =+O|
|oo+ + o S o.+E+|
|.o * . * +. +|
|. . o + o .. + |
| ..+ o o.. o|
| .o..oBo o |
+----[SHA256]-----+
✔
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
[2019-05-13 11:16.36] ~
[manoj.kumar11.L-1LZ6152] ➤ ll
total 2
lrwxrwxrwx 1 manoj.ku UsersGrp 36 Apr 30 15:54 Desktop -> /drives/C/Users/MANOJ~1.KUM/Desktop/
lrwxrwxrwx 1 manoj.ku UsersGrp 36 Apr 30 15:54 LauncherFolder -> /drives/C/PROGRA~2/Mobatek/MOBAXT~1/
lrwxrwxrwx 1 manoj.ku UsersGrp 37 Apr 30 15:54 MyDocuments -> /drives/C/Users/MANOJ~1.KUM/DOCUME~1/
-rw-r--r-- 1 manoj.ku UsersGrp 66 May 8 16:50 m1
✔
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
[2019-05-13 11:16.40] ~
[manoj.kumar11.L-1LZ6152] ➤ ll -a
total 10
drwxr-xr-x 1 manoj.ku UsersGrp 0 May 12 19:35 .
drwxr-xr-x 1 manoj.ku UsersGrp 0 Apr 30 15:54 ..
-rw-r--r-- 1 manoj.ku UsersGrp 3296 May 13 11:16 .bash_history
drwxr-xr-x 1 manoj.ku UsersGrp 0 Apr 30 16:00 .ssh
-rw-r--r-- 1 manoj.ku UsersGrp 4701 May 12 16:19 .viminfo
lrwxrwxrwx 1 manoj.ku UsersGrp 36 Apr 30 15:54 Desktop -> /drives/C/Users/MANOJ~1.KUM/Desktop/
lrwxrwxrwx 1 manoj.ku UsersGrp 36 Apr 30 15:54 LauncherFolder -> /drives/C/PROGRA~2/Mobatek/MOBAXT~1/
lrwxrwxrwx 1 manoj.ku UsersGrp 37 Apr 30 15:54 MyDocuments -> /drives/C/Users/MANOJ~1.KUM/DOCUME~1/
-rw-r--r-- 1 manoj.ku UsersGrp 66 May 8 16:50 m1
✔
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
[2019-05-13 11:16.45] ~
[manoj.kumar11.L-1LZ6152] ➤ cd .ssh/
✔
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
[2019-05-13 11:16.49] ~/.ssh
[manoj.kumar11.L-1LZ6152] ➤ pwd
/home/mobaxterm/.ssh
✔
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
[2019-05-13 11:16.51] ~/.ssh
[manoj.kumar11.L-1LZ6152] ➤ ll -a
total 7
drwxr-xr-x 1 manoj.ku UsersGrp 0 Apr 30 16:00 .
drwxr-xr-x 1 manoj.ku UsersGrp 0 May 12 19:35 ..
-rw-r--r-- 1 manoj.ku UsersGrp 1675 May 13 11:16 id_rsa
-rw-r--r-- 1 manoj.ku UsersGrp 405 May 13 11:16 id_rsa.pub
-rw-r--r-- 1 manoj.ku UsersGrp 788 May 9 18:17 known_hosts
✔
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
[2019-05-13 11:17.01] ~/.ssh
[manoj.kumar11.L-1LZ6152] ➤ cat id_rsa
-----BEGIN RSA PRIVATE KEY-----
MIIEogIBAAKCAQEAxW1fL956q2Sl8cAQq95Nem2vNUHX9zDdG/Q6EkXVYrhJkx8A
ySkEBhFePlKJ2n8qtXtt2WoeITDTCNjFfJZopzmKM7gIeDPSuI+oF0iqh+wo2wD8
ZsCjsK4LKSmlhXRN7z+ONrpKb2eOIgf7rEdQDqzDIIr+gho11OO176Onwo2dGpZi
5HU/dNPrNNm3ApyilylT0EdnPkfkoRohzKqXgViFmIDuL4kQGPMJsIx6NvQ/ThCK
GqoVJs1HKqBrlEVhPWX5sCB2ej/dR7CTcHUeFtnLXhArP2daDhC365kssiPu5L31
Peg+M9oKLJWm+QhS/q+L34u9BLD7SPdT1CjUfwIDAQABAoIBAD8HkvsaYTl00ZHj
yq7EMyIiAGzVT5iobf7tstiAmQaCZWLl4/9U6+bwBpGJEl/Cd6Um+cQOn/3is41A
f5QuBM1WjmvCllmh2eV4X6bHWUI5wDVjFDHN0LSobAHBPQnlPrhiJwoL4ZW9juAI
gm3W+pUkzMsH9QceTQ9hf4U5T2bJ9SbNL1XHXFIjOutH+MZpedypkA1J3WZDS7wF
kRY8I0hTXcX1hWhw+Mmgd3PVAiAYDYUMw3R/gTUPvL37mljKGq+9b6B5XdMrdfta
JzEka6aMtMT/AVZedaRYNQhSSsQWG9Awdr6PBCm/8tYc9EnWmFiWlAS18zThOSF5
8x5G+MkCgYEA94KKabZwU7NyZyjoZ//CVuPetavkKgpo79PeJamcPwQ4CC+h0EH0
5AAH+E7eCxyrUx6FqNBX3FcBD/jSbwaLO+nixkqHFEiAKFMWm9FHj3y1rylrOmML
cB1XgrOVuUcwt+SG2RtQ2gnE7vt2RBY/y9BiRLuSfj89qIenMyl7/70CgYEAzDMK
ONc2lTuz/lhHvQbQW3UxIpEpLIlZyW+Oj1SbPdKCaHiT/+pLil0BOaHWfjZKE9Oz
WS5jbax2deRQYwHu0ChuLQw+mx5p3KMQQHrIVixP8gvavE4v142R88o76naGtoz0
eiBw3Zc7h745HL5DItlNy+1X3LHkpZeQpkYZeusCgYBT0pbztECYaDZ/b2A+EGUN
rkB3gE5WWo4tYrBiSu3KfbBIPXFsqVm5ebU5R+R1GPGAxd54TI7k5WZLtXX2+d1f
nhcaFpVmriMRBQqsHJVCp/aT6tAQxwhRoO5JKm6zf8OlE7UDg/e+z/4s/WaRKoPS
j7EoG+pB7UMBd2eNsSf4dQKBgGVUGol0OjC5rKrVEdw6KmCH+fbmQ6FHExgDVKHJ
YTO/Z1kCJKcEk7G4TyhTJ8X/mKjYD5J8k3hT8YC06DMJPYFr3qhaACMnZ27GOAVX
KFyippU8zrFMty7moHtyamMBp/2kWpjTyk4bgr3sZhjeTSBY5uMABu6MFCMb3/qy
pGg7AoGAMtE3RhJE0LhYzZvPTNajOM4b8PbW9FmKjnMCFd3fIiNprju3xzPC/c3X
CtPAOFwP8HzJsXpTh0oNZgFciNNaiVYlMgnhk9Qayv0ibGiRxvhZI/MrC+0JFEVo
qwNKM5VBSap4IHWM5FGvsAwbrraWAQhVdEtKWdcf29t1u+PGXgk=
-----END RSA PRIVATE KEY-----
✔
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
[2019-05-13 11:17.10] ~/.ssh
[manoj.kumar11.L-1LZ6152] ➤
Comments
Post a Comment