Skip to main content

Linux command: ssh-copy-id


ssh-copy-id copy ssh public key to remote host

ssh-copy-id - install your identity.pub public key in a remote machine’s authorized_keys

Syntax

ssh-copy-id [-i [identity_file]] [user@]machine

Copy ssh public key to host 192.168.64.115

[tuyen@rhel5 ~]$ ssh-copy-id -i ~/.ssh/tuyenid_rsa.pub tuyen@192.168.64.115
32
The authenticity of host '192.168.64.115 (192.168.64.115)' can't be established.
RSA key fingerprint is 34:75:a1:bc:f4:15:d6:19:e6:0b:3b:cf:04:74:d0:c3.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.64.115' (RSA) to the list of known hosts.
tuyen@192.168.64.115's password:
Now try logging into the machine, with "ssh 'tuyen@192.168.64.115'", and check in:

  .ssh/authorized_keys

to make sure we haven't added extra keys that you weren't expecting.

[tuyen@rhel5 ~]$

ssh to 192.168.64.115 using ssh private key

[tuyen@rhel5 ~]$ ssh -i .ssh/tuyenid_rsa tuyen@192.168.64.115
Last login: Tue Jun 18 11:29:06 2019 from 192.168.64.102
[tuyen@ol7 ~]$

Copy SSH public key from Microsoft Windows to Linux

PS C:\Users\tuyen> type .\.ssh\tuyenid_rsa.pub | ssh tuyen@192.168.64.115 "cat >> .ssh/authorized_keys"

Popular posts from this blog

Windows Command: arp - Address Resolution Protocol

Notes from daily work situation. While troubleshooting HSRP, I need to delete arp table on my computer. arp -d * Take a look at other options with arp command: C:\Users\Administrator>arp /? Displays and modifies the IP-to-Physical address translation tables used by address resolution protocol (ARP). ARP -s inet_addr eth_addr [if_addr] ARP -d inet_addr [if_addr] ARP -a [inet_addr] [-N if_addr] [-v] -a Displays current ARP entries by interrogating the current protocol data. If inet_addr is specified, the IP and Physical addresses for only the specified computer are displayed. If more than one network interface uses ARP, entries for each ARP table are displayed. -g Same as -a. -v Displays current ARP entries in verbose mode. All invalid entries and entries on the loop-back interface will be shown. inet_addr Specifies an internet address. -N if_a...

Microsoft Windows Server 2012 R2 Standard Evaluation Product Key

Microsoft Windows Server 2012 R2 Standard Evaluation D2N9P-3P6X9-2R39C-7RTCD-MDVJX DBGBW-NPF86-BJVTX-K3WKJ-MTB6V

IBM Domino: How to enable HTTP Request logging in Domino

http://www-01.ibm.com/support/docview.wss?uid=swg21099151 Technote (FAQ) Question How do you enable HTTP request logging when using a Lotus® Domino® Web server? You want a record of all requests sent by Web browsers to the Domino server to use for troubleshooting. Answer Below is a short guide to turning on request logging that provides the basic logging level. More verbose logging can be enabled by following the instructions in  "Overview of HTTP Request Logs" (#7003598) . Important:  HTTP request logging should be used only for troubleshooting specific issues, and usually at the direction of and with assistance from IBM Support. Do not use request logging for other purposes, such as administrative reasons. Because these log files grow in size over time, you should not leave this setting enabled for long periods or you will exhaust the available drive space. To enable logging of HTTP requests for a Domino server for the current HTTP session only, enter the f...