Skip to content

thomasvs/portknock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4c628e2 · Mar 19, 2012

History

8 Commits
Mar 19, 2012
Mar 19, 2012
Mar 17, 2012
Mar 19, 2012
Mar 19, 2012

Repository files navigation

These are tools to integrate port knocking with ssh and scp for bash.

INSTALL
-------

- run 'make install' as a user to put bash scripts in place
- make sure you source the script in your .bashrc or .bash_profile
  source $HOME/.bashrc.d/portknock

  (I have these lines in .bashrc to do so:

if test -e ~/.bashrc.d
then
  for f in ~/.bashrc.d/*
  do
    source $f
  done
fi

CONFIGURATION
--------------

- create a file in $HOME/.portknock with portknock sequences for your hosts:
  - one line per sequence
  - the first argument is a regexp for the hostname
  - the second argument is a comma-separated list of tcp ports to knock on
  - empty lines and lines starting with # are ignored

- to integrate seamlessly with ssh (for tools like git, ...) you can
  add a section to your .ssh/config file using ProxyCommand:

Host different.my.net
  HostName different.my.net
  ProxyCommand psshproxy %h %p

About

integrate portknocking with ssh-using commands

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages