HowTo HowTo change default SSH Port on Open WebHTB

HowTo change default SSH Port on Open WebHTB 9505 views, 0 replies

Sometimes admins change their SSH port, but WebHTB?

Step 1: Edit "auth.php"

search for this: "$ssh = new Net_SSH2('127.0.0.1');"

and change like this: "$ssh = new Net_SSH2('127.0.0.1', 2222);"

2222 is your new SSH2 port

also change this if you have php-pecl-ssh2 installed: "$connection = ssh2_connect('127.0.0.1', 22);"

and replace "22" with your new SSH2 port

Step 2: Edit "apply_changes.php"

like at step 1, chande the same lines



Leave a Comment

You must be logged to post comments !

Try WebHTB Proffesional