1. Running Ssh-host-configNote Here is the Red section, enter the user name or password to conform to the computer's user name or password policy (especially the company has permission to restrict the computer).$ ssh-host-config Query:overwrite Existing/etc/ssh_configfile? (
, also re-installed Cygwin64 bit or invalid, finally installed Cygwin32 bit talent enough.[Email protected] ~$ cd ~/.ssh[email protected]~/.ssh$ ssh localhost[email protected] ' s password: 2 [main] sshd 3 804 D:\SofeWare\cygwin\usr\sbin\sshd.exe: * * * fatal Error-ntcreateevent (lock): 0xc0000058connection to lo
, for example:; C: /cygwin/bin 11. double-click the cywin icon installed on Windows to start cywincopying skeleton files.
These files are for the user to personalise
Their cygwin experience. These will never be overwritten. './. bashrc'-> '/home/Administrator //. bashrc'
'./. Bash_profile'-> '/home/Administrator //. bash_profile'
'./. Inputrc'->'/home/Administrator //. inputrc' 12. Authorize the file to ins
Cygwin ssh Server configuration Cygwin is a collection of many software that was initially developed by Cygnus Solutions to run UNIX-like systems on Microsoft Windows of various versions. Cygwin primarily aims to migrate software on POSIX systems (such as Linux, BSD, and other Unix systems) to Windows through recompila
target host SSH-MNF Create a persistent connection to the target host in the background, and this command will be~/.ssh/config is used in conjunction with: Host Hostcontrolpath~/.ssh/m
1, install SSH
The default Cygwin does not have SSH installed, so rerun the Http://www.cygwin.com/setup.exe
In select packages, in Search input ssh, select openssh:the OpenSSH Server and client programs
2. Configure SSH service (run C
Installation process:1. Install JDK, download Cygwin address: https://cygwin.com/install.html2. Installation process Reference http://www.cnblogs.com/kinglau/archive/2013/08/20/3270160.html3. Installing the SSHD processSsh-host-config # boot SSH service configurationQuery:enter the value of
generate a fixinc. Sh script under the host-i686-pc-cygwin/fixdocumdes directory.
1.3 mkheaders
This goal is defined:
Mkheaders: mkheaders. Almost $ (srcdir)/./GCC/BASE-VER
Sed-E's/@ gcc_version @/$ (gcc_version)/'
MV-F $ @ T $ @
Mkheaders. Almost: $ (srcdir)/mkheaders. In config. Status
Config_files = mkheaders. Almost: mkheaders. In/
Config_headers =./
1. Install SSHThe default Cygwin does not have SSH installedso re-run Http://www.cygwin.com/setup-x86_64.exe When you select packages, in the search input SSHSelect Openssh:the OpenSSH Server and client programs2. Configure the SSH service (run Cygwin as Administrator) Execution: S
$ git config--global user.email "Your_registered_github_email" #设置邮箱地址 (recommended for registered Giuhub mailboxes)
6Test whether the SSH keys are set successfully.$ ssh-t [email protected]The authenticity of host ' github.com (192.30.252.129) ' can ' t be established.RSA key fingerprint is 16:27:xx:xx:xx:xx:xx:4d:e
log on to the target server.In addition to the above approach, of course, you can also choose to use Alias in. zshrc or. BASHRC to specify an SSH login code as the name of the command to execute the command such as" ssh www.xiachufang.com-p "Actually, it's very handy. I think, but as a late-stage lazy cancer programmer every time the new server needs to be configured, it feels that this method of adding sc
use SSH on the command to specify flag to override the options in the configuration file.Location of the SSH client configuration fileThe file name of the configuration file is config located under the. SSH folder in the user's home directory.~/.ssh/configTypically, the fil
without password. So how do you get it to log in to the Master.hadoop host without a password? Of course it is distributing the contents of the public key file Id_dsa.pub to the Master.hadoop host. Such as:For example, execute the command cat ~/.ssh/id_dsa.pub | ssh [email protected] ' cat->> ~/.
first. Therefore, this problem must be solved.
Fortunately, after checking man ssh_config, this problem can be solved. Create the file config in the/root/. Ssh directory. If it is a common user, it is ~ /. Add a line in the SSH directory:
Stricthostkeychecking No
In this way, if no key is added to the host during
git config ssh keyIf the host (the currently logged on user) does not have a GIT account prior to adding the first git account and configuring the SSH key,Follow the steps below:1 CD ~/.ssh2 ssh-keygen-t rsa-c ' [email protected] '3 Cat Id_rsa.pub4 Copy the public key to the
First try ssh localhostssh localhostIf the SSH service is not started, the following error will be reported:ssh: connect to host localhost port 22: connection refusedSet SSH password-free login (optional)This step sets the password-free login by setting the public and private keys. You can skip this step if the server
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.