If you are looking to connect to an SFTP server the default port is 22, but what if the provided port details that you have is not 22, you will need to use -P option to provide the custom port details,
Example Connect to SFTP Custom Port:# sftp -P 8020 user-name@sftp-server-host-name.com
(user-name@sftp-server-host-name.com) Password:
Connected to sftp-server-host-name.com.
sftp>
As you can see by using -P option followed by the port number you can connect to a specific port.
More Posts related to FTP,
- Check help on commands while being on sftp> prompt
- How to connect to SFTP location using Terminal command
- List of 60 useful FTP Client Commands to access server
- 10 FTP SFTP Clients and Alternatives
- How to Copy a remote file to local using SFTP command?
- How to switch between sftp and Terminal shell
- [Solution] SFTP Connection closed File 22 not found
- FileZilla Connection time out Failed to retrieve directory listing
- How to SFTP to port different than 22 (SFTP Custom port)
More Posts:
- 🌗 List of Solar Eclipses in the year 2020-2021 🌑 - Science
- How to Remove Widgets from macOS Sonoma 14 Desktop - MacOS
- Fix - zsh: permission denied: ./gradlew [Android Studio Terminal] - Android-Studio
- Android Emulator window was out of view and was recentered - Android-Studio
- [Solution] Mac Update Stuck Preparing macOS Ventura 13.0 About 30 minutes remaining - MacOS
- [Fix] Cannot resolve No versions available for org.osgi.service:org.osgi.service.prefs:jar:[1.1.0,1.2.0) within specified range - Java
- Hide Navigation Bar from Android Screen Activity - Android
- Writing your first Hello, World! 🌍 JavaScript code Tutorial - JavaScript