COPY the id_*.pub from your desktop and append
It to authorized_keys on the host. You will be
prompted only once to validate the host. Reply
"Yes". Do not abbreviate.
<https://www.ibm.com/docs/en/ahts/4.2?topic=line-creating-ssh-keys-command>
(More):
ssh is prudently fussy about permissions. I use:
#! /bin/sh -x
# Doc: Set useful and safe permissions for ~/.ssh
: "in $0"
: "ssh requires that no one other than user be able to write \$HOME"
cd && chmod u+rwx .ssh && cd .ssh && chmod og-w .. || exit $?
:
: >>authorized_keys # Create but don't update timestamps
chmod -R og-rwx . && { # Prevent browsing -- especially authorized_keys
chmod -R u+rw . # User can read and write everything.
chmod a+x . # Allow everyone to search .ssh
chmod a+r *.pub # and to read public keys.
ls -al; } # Did we do it right?
--
gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN