Poor Planning

Why do ssh, scp and sftp all have different ways of specifying the port number? I run ssh on my home computer on a non-standard port, and it’s a pain in the calf to remember which one to use when.

> ssh -p 1234 example.com
> scp -P 1234 example.com
> sftp -oPort=24 example.com (I thought this one was a joke at first)

This entry was posted in All, Computers and tagged . Bookmark the permalink.

7 Responses to Poor Planning

  1. modified says:

    Do all three respect options in your ~/.ssh/config file? Something like:

    Host example.com
    Port 1234

    could make your life simpler.

  2. pjmartin says:

    Are you guys speaking French… or something?

Leave a Reply

Your email address will not be published. Required fields are marked *