|
maybe i missing something
i ran this script:
#!/bin/bash
if [ ! -r ${HOME}/.ssh/id_rsa.pub ]; then
ssh-keygen -b 2048 -t rsa
fi
#Append to the copy on the remote server
cat ~/.ssh/id_rsa.pub | ssh ${USER}@$1 "cat - >> .ssh/authorized_keys"
if [ $? -eq 0 ]; then
echo "Success"
fi
and still could not login automatcly to the host server
why?
|