SSH without password access to other machines and Windows on putty without password access to Linux machine

Source: Internet
Author: User

1. No password access to other machines (UBUNTU2) from a Linux machine (UBUNTU1)

(1) Login ubuntu1 and switch to user such as S1

(2) Running ssh-keygen-t RSA

(3) running CD. SSH

(4) Run cat id_rsa.pub >> Authorized_keys. Running SSH localhost now allows you to log on to the machine without a password.

(5) running SCP authorized_keys [email Protected]:/home/s1/.ssh/authorized_keys

(6) Run chmod on UBUNTU2 Authorized_keys

(7) You can ssh directly in UBUNTU1 now UBUNTU2

2. Use Putty key file login from Windows ubuntu1

(1) Download the/home/s1/.ssh/id_rsa file on UBUNTU1 to Windows

(2) go to http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html. Download PuTTYgen.exe

(3) Run PuTTYgen.exe, click Load, select the first step to download the Id_rsa file

(4) Save the resulting file to disk

(5) The Auto-login username of the session configured Putty is S1

(6) Set PPK file

(7) You can now login ubuntu1 without a password in putty

(8) Using the same file configuration steps five and sixth can access Ubuntu 2 without a password

Reference Link: http://www.rackspace.com/knowledge_center/article/logging-in-with-a-ssh-private-key-on-windows

SSH without password access to other machines and Windows on putty without password access to Linux machine

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.