Changeset f507f06 for postlfs


Ignore:
Timestamp:
08/22/2014 08:36:59 AM (10 years ago)
Author:
Igor Živković <igor@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 7.10, 7.6, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
374094d
Parents:
d6d07c0c
Message:

Use ssh-copy-id shell wrapper for copying OpenSSH public key.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@13977 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • postlfs/security/openssh.xml

    rd6d07c0c rf507f06  
    259259        <command>ssh-keygen</command> and then copy ~/.ssh/id_rsa.pub to
    260260        ~/.ssh/authorized_keys on the remote computer that you want to log into.
    261         You'll need to change REMOTE_HOSTNAME for the hostname of the remote
    262         computer and you'll also need to enter you password for the ssh command
     261        You'll need to change REMOTE_USERNAME and REMOTE_HOSTNAME for the username and hostname of the remote
     262        computer and you'll also need to enter your password for the ssh-copy-id command
    263263        to succeed:
    264264      </para>
    265265
    266266<screen><userinput>ssh-keygen &amp;&amp;
    267 public_key="$(cat ~/.ssh/id_rsa.pub)" &amp;&amp;
    268 ssh REMOTE_HOSTNAME "echo ${public_key} &gt;&gt; ~/.ssh/authorized_keys" &amp;&amp;
    269 unset public_key</userinput></screen>
     267ssh-copy-id -i ~/.ssh/id_rsa.pub <replaceable>REMOTE_USERNAME</replaceable>@<replaceable>REMOTE_HOSTNAME</replaceable></userinput></screen>
    270268
    271269      <para>
Note: See TracChangeset for help on using the changeset viewer.