#!/bin/bash
# This must be allowed on server end
# in /etc/sshd_config (default):
# RSAAuthentication yes
# PubkeyAuthentication yes
user='username'
host='hostname.com'
ssh-keygen -t rsa
cat >> ~/.ssh/config <<>> ~/.ssh/authorized_keys"
# done
ssh hostname.com
# This must be allowed on server end
# in /etc/sshd_config (default):
# RSAAuthentication yes
# PubkeyAuthentication yes
user='username'
host='hostname.com'
ssh-keygen -t rsa
cat >> ~/.ssh/config <<>> ~/.ssh/authorized_keys"
# done
ssh hostname.com
No comments:
Post a Comment