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)
Do all three respect options in your ~/.ssh/config file? Something like:
Host example.com
Port 1234
could make your life simpler.
Yeah, that works. That will help a little bit, thanks.
Actually it seems like only ssh respects the ‘Port’ option in ~/.ssh/config
Are you guys speaking French… or something?
sí
I know this is dorky, but I can’t decide if you were trying to be funny by responding in Spanish or French, because “si” is yes in Spanish, but it’s also “yes to a no question” in French. :)
Hint: I don’t know French.