Skip to content

Instantly share code, notes, and snippets.

@ksob
Last active August 29, 2015 14:16
Show Gist options
  • Save ksob/fafde8927912dc04262b to your computer and use it in GitHub Desktop.
Save ksob/fafde8927912dc04262b to your computer and use it in GitHub Desktop.
installation of openport tool supporting encrypted RSA on Mac OS X 10.9.2
1. Install python 2.7.X from: https://www.python.org/downloads/
2. Install mac ports from: https://www.macports.org/install.php
3. Run commands:
su admin_user
sudo easy_install pip
sudo pip install virtualenv
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
sudo port install freetype
su standard_user
git clone https://ksob@bitbucket.org/ksob/openport-client.git
cd ./openport-client/scripts/client
git checkout gui
virtualenv --python=python2.7 env
env/bin/pip install PIL --allow-external PIL --allow-unverified PIL
su admin_user
sudo env/bin/pip install psutil
sudo env/bin/pip install lockfile
sudo env/bin/pip install paramiko
sudo env/bin/pip install sqlalchemy
sudo env/bin/pip install alembic
sudo env/bin/pip install bottle
sudo env/bin/pip install cherrypy
sudo ln -s /usr/bin/pythonw env/bin/pythonw
su standard_user
mkdir ~/.openport
cp ~/.ssh/id_rsa ~/.openport
cp ~/.ssh/id_rsa.pub ~/.openport/id_rsa.pub
4. Make sure you are in the cloned repo in directory: openport-client/scripts/client
4.1. Edit line 69 of apps/portforwarding.py so it looks like:
pk = paramiko.RSAKey(filename=self.private_key_file, password='your_passphrase')
5. Finally run:
python openport.py 8888 # 8888 is the port
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment