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