This is for Yun ssh to third party box.
First, generate your identity key on 'Yun'
At Yun:
mkdir -p ~/.ssh/ dropbearkey -t rsa -f ~/.ssh/id_rsa
Since dropbear stores its keys in different format, it needs to be converted for a standard SSH server:
dropbearkey -y -f ~/.ssh/id_rsa | grep "^ssh-rsa" >> authorized_keys
At Linux box(192.168.0.225):
mkdir -p /home/sonnyyu/.ssh chown sonnyyu:sonnyyu -R /home/sonnyyu/
At Yun:
scp authorized_keys [email protected]:/home/sonnyyu/.ssh
At Linux box(192.168.0.225):
systemctl restart sshd.service #centos 7.0 /etc/init.d/sshd restart #centos pre 7.0 /etc/init.d/ssh restart #debian/ubuntu
At Yun:
ssh [email protected] ssh [email protected] -i ~/.ssh/id_rsa
Comments powered by CComment