Ssh-copy-ID:/usr/bin/ssh-copy-ID: Error: no identities foundposted on
March 25,201 1By jaseywang
There are two machines in the Intranet that need to be configured. During SSH,
Ssh-keygen generates a public and private key pair.Ssh-copy-id The local public key is copied to the remote machine's Authorized_keys file, Ssh-copy-id can also let you have to the remote machine/home/username/.
Environment:192.168.2.10192.168.2.11Implementation: 2.10 SSH without password login to 2.11In 2.10 ssh to 2.11 machines, a password is required, which makes it inconvenient for some scripts to work because of the need for a password, which requires manual intervention. The previous method is to copy Authorized_keys inside (remember, before), recently found a comm
on the server, the public key is placed in the ~/.ssh/authorized_keys file. The settings for this file can be found in /etc/ssh/sshd_config .Authorizedkeysfile. Ssh/authorized_keysThen when connecting from one Linux client server to another Linux Server, we should generate a couple of keys on the Linux client server (RSA defaults to Id_rsa and id_rsa.pub), saved
SSH to the 163 host requires a password, which is inconvenient for some scripts because the password is required, that is, manual intervention is required. The method used previously was to copy the authorized_keys file (I can't remember it, I used it before). Recently, I found a command ssh-copy-
private key.
2, the public key will be transmitted to the remote host hosts;
$ Ssh-copy-id User@host
After two steps, you can achieve a remote login without a password (the host saves the user's public key in the ~/.ssh/authorized_keys file).
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Prob
Environment:192.168.2.10192.168.2.11Implementation: 2.10 SSH without password login to 2.11In 2.10 ssh to 2.11 machines, a password is required, which makes it inconvenient for some scripts to work because of the need for a password, which requires manual intervention. The previous method is to copy Authorized_keys inside (remember, before), recently found a comm
SSH to the 192.168.88.61 machine requires a password, which is inconvenient for some scripts because of the need for a password, which requires manual intervention. Recently found a command Ssh-copy-id is very convenient, tested, and sure enough to use, recorded:On the 192.168.88.61 machine.1) Run:
Use of SSH-copy-ID
Ssh-copy-ID is a preset command in the SSH client suite. Simply put, it is just a script, when you have produced an RSA or DSA on your computerAuthentication. You can
Under Linux system, SCP uses non-default port for transport need to add parameter-p (uppercase), SSH needs to add parameter-p (lowercase), ssh-copy-id need to add parameter-p (lowercase).Instance:In the SCP command. Uppercase is required. As follows:[Email protected] data]# scp-p 28-r fina_info20120904.zip [email prote
Ssh-keygen generates a public and private key pair. Ssh-copy-id The local public key is copied to the remote machine's Authorized_keys file, Ssh-copy-id can also let you have to the rem
The SSH-copy-id command can install the local SSH public key file to the account corresponding to the remote host.
I have been manually using SCP and SSH commands to execute this task. I just found this convenient command!
SSH-
Ssky-keygen + ssh-copy-id login remote Linux host without passwordUsing Ssky-keygen and Ssh-copy-id in the example below, you can log in to a remote Linux host with a simple setup of 3 steps without entering a password.Ssh-keygen
In the system operation, it is possible to avoid the password through SSH login to the remote host, then the first need to copy the local public key to the remote host, with the Ssh-copy-id command can be easily done.If a key pair is not generated, the key is generated befor
In the following example, ssky-keygen and ssh-copy-id can be used to log on to a remote Linux host without a password. Ssh-keygen creates the public key and key. Ssh-copy-id copies the
Using Ssky-keygen and Ssh-copy-id in the example below, you can log in to a remote Linux host with a simple setup of 3 steps without entering a password.Ssh-keygenCreate public keys and keys.The Ssh-copy-id copies the local host's
Ssh-copy-id is a handy tool for setting up Peer-to-peer logins between machines (without having to enter a password every time), Ssh-copy-id's default port is 22 and ssh, but sometimes we change
Using Ssky-keygen and Ssh-copy-id in the example below, you can log in to a remote Linux host with a simple setup of 3 steps without entering a password.Ssh-keygen create public keys and keys.The Ssh-copy-id copies the local host'
Previously, I used to connect to the server using a terminal provided by Mac. The general steps are as follows:
1. Ssh-P 10000 huangwei@1.1.1.1
2. Enter the password
However, it is quite troublesome to enter a password every time. The SSH-copy-ID tool is more convenient to log on.
First, generate the public key a
Thank you for your friends to support this blog, welcome to discuss the exchange, due to limited capacity and time, mistakes are unavoidable, please correct me!If reproduced, please keep the source author blog information.Better Me Blog: Blog.csdn.net/tantexianIf you need to communicate, welcome to blog message.Automatic script implementation with no key login: Vim auto_ssh.sh
#!/usr/bin/expectSetTimeoutTen Setusername [lindex $argv0] SetPassword [lindex $argv1] Se
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.