Configuring the SFTP Port - Examples
  • 10 Jul 2024
  • 1 Minute to read
  • Contributors
  • PDF

Configuring the SFTP Port - Examples

  • PDF

Article summary

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

© 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



Was this article helpful?

What's Next
Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.