Skip to content

SSH port knocking script

jdlawrie.co.uk
10 pointskanny963 comments
On HN

Comments

I wrote knockknock because I couldn't find a non-insane port knocker that employed the use of cryptography over a simple knock sequence: http://www.thoughtcrime.org/software/knockknock/

now we need a client bash script generator to ease the pain of connecting to the remote server. Does this mean i would have to ssh N times before i could use scp to download some files? probably not a good example...

if you put something like

  host *
       ControlMaster auto
       ControlPath ~/.ssh/master-%r@%h:%p
in your .ssh/config, any additional ssh sessions to a host reuse the original connection, so a new link doesn't have to be renegotiated.
AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.