User login

SSH on a nonstandard port

After trying a lot of stuff that didn't work, like ssh -2 username@example.com:6927 or #6927 and many possible and impossible permutation, and after some internet searching, Agaric Design cobbled together this for your benifit. For those of you on Windows, I think you can just type in the port number. For those of you on Linux or Unix-like systems, this may help. It is tested and approved on Mac OS X:

Edit or create a plain text config (no extension) file in the .ssh (invisible system) folder in you ~/Username/ directory.

Add the directive to use a non-standard port for connecting to your machine, for instance:

Host example.com
Port 6927

Now, with SSH set to automatically select the appropriate protocol, this will work:

ssh exampleuser@example.com

Enjoy your secure, nonstandard shelling! Or let Agaric deal with it...

After trying a lot of stuff that didn't work, like ssh -2 username@example.com:6927 or #6927 and many possible and impossible permutation, and after some internet searching, Agaric Design cobbled together this for your benifit. For those of you on Windows, I think you can just type in the port number. For those of you on Linux or Unix-like systems, this may help. It is tested and approved on Mac OS X:

Edit or create a plain text config (no extension) file in the .ssh (invisible system) folder in you ~/Username/ directory.

Add the directive to use a non-standard port for connecting to your machine, for instance:

Host example.com
Port 6927

Now, with SSH set to automatically select the appropriate protocol, this will work:

ssh exampleuser@example.com

Enjoy your secure, nonstandard shelling! Or let Agaric deal with it...

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.