IBM Support

Syntax to Specify a Different Port in the SSH and SFTP Client Commands

Troubleshooting


Problem

This document includes the syntax of the SSH and SFTP client commands to specify a different port on the secure host that is being connected to.

Resolving The Problem

This document includes the syntax of the SSH and SFTP client commands to specify a different port on the secure host that is being connected to.

For SSH, the syntax would be as follows:

ssh -T -p #### user@host


For SFTP, the syntax would be as follows:

sftp -o port=#### user@host

or

sftp -oport=#### user@host

In all examples, #### would be replaced by the desired port number.

[{"Product":{"code":"SWG60","label":"IBM i"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"Communications-TCP","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"Version Independent","Edition":"","Line of Business":{"code":"LOB57","label":"Power"}}]

Historical Number

590804807

Document Information

More support for:
IBM i

Software version:
Version Independent

Operating system(s):
IBM i

Document number:
685615

Modified date:
18 December 2019

UID

nas8N1011693

Manage My Notification Subscriptions