Using sftp on a non-standard port

平常還蠻常用到 linux / mac 的 ftp, ssh 指令。今天有個 case 是要用 sftp 指令連去廠商的主機,雖然有用過這個指令,卻不知道怎麼指令 port…

一查才發現這用法跟其他指令差異還真大。

sftp -o "Port 3432" user@example.com

要用 -o 設定參數,筆記一下。


Posted

in

, ,

by

Comments

Leave a Reply

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