0% found this document useful (0 votes)
134 views1 page

Assignment # 8 (How To Access Remote System Without Password Using SSH)

This document provides steps to set up passwordless SSH access to a remote system. It involves: 1. Generating an RSA private key on the local system. 2. Copying the public key to the remote system. 3. Authenticating to the remote system using a password to append the public key to the authorized_keys file. 4. Setting proper permissions on files and directories to enable passwordless login.

Uploaded by

intelmaster
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
134 views1 page

Assignment # 8 (How To Access Remote System Without Password Using SSH)

This document provides steps to set up passwordless SSH access to a remote system. It involves: 1. Generating an RSA private key on the local system. 2. Copying the public key to the remote system. 3. Authenticating to the remote system using a password to append the public key to the authorized_keys file. 4. Setting proper permissions on files and directories to enable passwordless login.

Uploaded by

intelmaster
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

ASSIGNMENT # 8 (How To Access Remote System Without Password Using SSH)

If you are routinely using a remote SSH login to a computer, you may wish login without giving password every time to it. Here are few simple steps to make a password less SSH connection for Unix & Linux distributions. The steps are written below, 1. First you must generate an RSA private key on your home computer for this type ssh-keygen -t rsa at command prompt. It may ask you about three options you just hit enter to accept all the default options.

2. Next, copy your public key (as generated in step one) to remote computer. Here replace mylogin and example.com with your username and domain name respectively. It will also ask you password. scp ~/.ssh/id_rsa.pub [email protected]:~/ 3. Now you need to ssh to your account (using your password). ssh [email protected] 4. Now you have to append the public key to your authorized keys file. Here we are creating a .ssh directory first but you may already have this on your remote machine mkdir .ssh cat id_rsa.pub >> .ssh/authorized_keys rm id_rsa.pub 5. Now you have to set the permissions properly for all necessary files and directories: chmod go-w ~ chmod 700 ~/.ssh chmod 600 ~/.ssh/authorized_keys 6. Now, if you have set up everything properly, you should be able to access your remote account through SSH without a password.

SALMAN ARAIN (3749)

HIDAYA

You might also like