PDA

View Full Version : AutoSSH help required



gear259
13-05-17, 20:03
Hi peeps I need some help with setting up AutoSSH. I've been trying to follow guides I find online, but I'm getting confused as we use dropbear and I can't get my keys pairs working properly. I have working keys that I use with Putty and all works grand in that regard. Just need help setting up autossh to connect to ubuntu server.

Any wizards out there?

birdman
13-05-17, 23:22
Hi peeps I need some help with setting up AutoSSH.What are you trying to get it to do?

gear259
13-05-17, 23:37
I want my E2 to auto login to my Ubuntu server on other network so that I don't have to open ports in firewall for remote access to E2 using my server.

Sent from my FRD-L09 using Tapatalk

birdman
14-05-17, 00:25
First things first.
Can you ssh (using a certificate) from the box to the Ubuntu system.

To do this you'll need to:


Get a key-pair for ssh.
Add the public key to .ssh/authorized_keys for the account on the Ubuntu server that you wish to use. (If that account already has a key-pair, just use that).
Copy the private key to the box.
Create a .ssh directory in root's HOME.
Run this command:
dropbearconvert openssh dropbear <path-to-private-key> ~root/.ssh/id_dropbear

You should now be able to ssh from the box to the Ubuntu server without giving a password (something AutoSSH requires).

gear259
14-05-17, 07:19
Thanks birdman gonna give this a whack tonight

Sent from my FRD-L09 using Tapatalk