Files
mastering-unix-ss/chapter1/keyit.dsa
Fabio Scotto di Santolo 4cc88d2f6e initial commit
2020-07-28 19:28:25 +02:00

12 lines
253 B
Bash
Executable File

#!/bin/bash
#
# SCRIPT: keyit.dsa
#
# PURPOSE: This script is used to set up DSA SSH keys. This script must
# be executed by the user who needs the keys setup.
REM_HOST=$1
cat $HOME/.ssh/id_dsa.pub | ssh $REM_HOST "cat >> ~/.ssh/authorized_keys"