Jump to content

Recommended Posts

Posted

re: autossh and it's persistence. When enabled, does it actually establish a connection to the relay server, and the server holds the conn, or is it just constantly trying to connect, and when you log on to the vps using -p 4255 etc, the connection is then established? I could probably look through auth.log files on the server and come to a conclusion, but I am looking for a definitive answer that doesn't involve my own garbled 'self-teaching'.=)

Posted

Autossh maintains an SSH connection to your server. What autossh does is watch the SSH connection and if it drops it'll restart SSH. It's like an SSH wrapper. Monitoring is done over port 10000 IIRC and it does a damn good job of keeping a tunnel open.

That said we have a wrapper around the wrapper in the form of ssh-keepalive.sh, which periodically checks to make sure autossh itself hasn't crashed and restarts it if necessary. Just added protection.

Check out Hak5 episode 1112 for an in-depth walk through on configuring a WiFi Pineapple with autossh and a VPS:

http://hak5.org/episodes/hak5-1112

Posted (edited)

"Who are you...who are so wise in the ways of science?"

I was cracking up when I heard you and snubsie quoting old Monty Python.

Way back when I first got the pineapple, I was trying my little heart out to get this autossh to work. But not until the other day when I saw this video and watched you copy paste the RSA public key did I realize that I was only copying inbetween ssh-rsa and root@pineapple, seeing you do it helped. The help in the UI says :

You'll need the from "ssh-rsa" to "root@Pineapple"

anyway, thanks

Edited by condor
  • 2 months later...
Posted

Hi. If I'm using a relay server that uses non-standard ssh port, how does it work. My server has ssh port on 45678. The standard autossh command, "autossh -M 20000 -N -R 4255:localhost:22 user@server.com -i /etc/dropbear/id_rsa" doesn't work. Before I changed the ssh port, it worked fine, but too many break-in attempt with port 22. I tried adding -o "Port 45678" to the command, but didn't work. Any tips?

Posted

Hi. If I'm using a relay server that uses non-standard ssh port, how does it work. My server has ssh port on 45678. The standard autossh command, "autossh -M 20000 -N -R 4255:localhost:22 user@server.com -i /etc/dropbear/id_rsa" doesn't work. Before I changed the ssh port, it worked fine, but too many break-in attempt with port 22. I tried adding -o "Port 45678" to the command, but didn't work. Any tips?

Use "autossh -M 20000 -f -N -R 4255:localhost:22 user@server.com -p 45678 -i /etc/dropbear/id_rsa"

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...