Configuring the SFTP Port - Examples
  • 06 Jul 2023
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

Configuring the SFTP Port - Examples

  • Dark
    Light
  • 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 Accedian Networks Inc. All rights reserved. Accedian®, Accedian Networks®,  the Accedian logo™, Skylight™, Skylight Interceptor™ and per-packet intel™, are trademarks or registered trademarks of Accedian Networks Inc. To view a list of Accedian trademarks visit: http://accedian.com/legal/trademarks/. 


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.