SSH without password access to Linux

Source: Internet
Author: User
Tags openssh server

1. Using putty to perform SSH connection to Linux virtual machines in VMware under Windows

Linux virtual Machine Network Choice Bridge mode, ifconfig see the IP and Windows Local machine ping,ping with each other can putty with SSH connection.

Note:/etc/ssh/sshd_config inside of Permitrootlogin yes this open, and then service sshd restart can.

/etc/ssh/This directory is available after the 2.linux system has just been installed.

/etc/ssh/sshd_config:openssh server configuration file;

/ETC/SSH/SSH_CONFIG:OPENSSH Client configuration file;

~/.ssh/: User SSH configuration directory, this directory just installed the system so that no!! When SSH [email protected] is executed under the current user of this system, this directory will automatically generate a file known_hosts. There are also connected Linux systems where the user's home directory is not automatically generated by the. SSH directory.

~/.ssh/authorized_keys: User public key (RSA or DSA);

/etc/nologin: If this file exists, SSHD will deny other users other than the root user login;

/etc/hosts.allow and/etc/hosts.deny: Defines the access control list performed by the Tcp-wrapper;

SSH default port: 22

3. SSH does not require a password between 2 Linux systems A and B on VMware virtual machines. Assume that A is client,b for the server.

A's home directory/home/a/.ssh execution Ssh-keygen below, enter the name A-key will generate A-key and a-key.pub these 2 files;

B's Home directory/home/b/below mkdir. SSH to create the. SSH directory (if there is no such directory);

Under the/home/a/.ssh of a, perform the SCP a-key.pub [email protected]:/home/b/.ssh/authorized_keys (if/home/b/.ssh/below authorized _keys This file, if you already have this file then you can directly add the contents of A-key.pub to this file can be);

When the above SCP succeeds, ssh [email protected] is executed on the command line of a, so you can login directly without entering the password.

SSH without password access to Linux

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.