---
title: "Configuring the SFTP Port - Examples"
slug: "configuring-the-sftp-port-examples"
tags: ["flex 100", "flex 22.01.4", "SFTP", "Examples"]
updated: 2024-07-10T15:00:37Z
published: 2024-09-03T19:32:47Z
canonical: "docs.crossworkassurance.cisco.com/configuring-the-sftp-port-examples"
---
> ## Documentation Index
> Fetch the complete documentation index at: https://docs.crossworkassurance.cisco.com/llms.txt
> Use this file to discover all available pages before exploring further.
# Configuring the SFTP Port - Examples
This article provides the sample configuration setup for the modification of the SFTP port through the CLI.
## Configuration Through the CLI
The CLI configuration steps for configuring user specific SFTP port number are listed below.
---
***Note**: Steps to modify the SFTP port number in the SFTP server are listed in the next section.*
---
1. Verify the default SFTP port number in Skylight Flex. **your product# show sftp port** SFTP destination port number: 22 **your product#**
2. Perform the SFTP operation and ensure the command execution is successful. **your product# copy startup-config sftp://< user >:< password >@< serverip >/flex .conf**
3. Configure the user-specific SFTP port number. **your product# configure terminal your product(config)# sftp port 2000 your product(config)# end your product#**
4. Verify the configuration using the show command. **your product# show sftp port** SFTP destination port number: 2000 **your product#**
5. Perform the SFTP operation. Ensure the SFTP server is listening on the configured SFTP port. **your product# copy startup-config sftp://< user >:< password >@< serverip >/flex .conf**
6. Reset the SFTP port to the default value. **your product# configure terminal your product(config)# no sftp port your product(config)# end your product#**
7. Verify the configuration using the show command and ensure the default port number 22 is updated. **your product# show sftp port** SFTP destination port number: 22
## Modifying SSH Port Number on SFTP Server
The following steps modify the SSH port number on the SFTP server.
1. Change the SSH port number on the server configuration file. **Path**: */etc/ssh/sshd_config* **Port** *2000*
2. Restart the SSH daemon. **sudo systemctl restart sshd.service**
**© 2026 Cisco and/or its affiliates. All rights reserved.** For more information about trademarks, please visit: [Cisco trademarks](https://www.cisco.com/c/en/us/about/legal/trademarks.html)[](https://www.cisco.com/c/en/us/about/legal/trademarks.html) For more information about legal terms, please visit: [Cisco legal terms](https://www.cisco.com/c/en/us/about/legal/terms-conditions.html)