- 06 Jul 2023
- 1 Minute to read
- Contributors
- Print
- PDF
Configuring the SFTP Port - Examples
- Updated on 06 Jul 2023
- 1 Minute to read
- Contributors
- Print
- PDF
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.
Verify the default SFTP port number in Skylight Flex.
your product# show sftp port
SFTP destination port number: 22
your product#Perform the SFTP operation and ensure the command execution is successful.
your product# copy startup-config sftp://< user >:< password >@< serverip >/flex .confConfigure the user-specific SFTP port number.
your product# configure terminal
your product(config)# sftp port 2000
your product(config)# end
your product#Verify the configuration using the show command.
your product# show sftp port
SFTP destination port number: 2000
your product#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 .confReset the SFTP port to the default value.
your product# configure terminal
your product(config)# no sftp port
your product(config)# end
your product#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.
Change the SSH port number on the server configuration file.
Path: /etc/ssh/sshd_config
Port 2000Restart the SSH daemon.
sudo systemctl restart sshd.service
© 2024 Cisco and/or its affiliates. All rights reserved.
For more information about trademarks, please visit: Cisco trademarks
For more information about legal terms, please visit: Cisco legal terms
For legal information about Accedian Skylight products, please visit: Accedian legal terms and tradmarks