Find the answer to your Linux question:
Results 1 to 3 of 3
How to connect through sftp on Midnight Commander when the remote machine is using a non-standard port? In Midnight Commander one can make an sftp connection to a remote machine ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2012
    Posts
    2

    Exclamation How connect through sftp on Midnight Commander with non-standard port?


    How to connect through sftp on Midnight Commander when the remote machine is using a non-standard port?

    In Midnight Commander one can make an sftp connection to a remote machine using:
    Code:
    cd #sh:userATexample.com:/home/username/
    How can this be done when the remote machine is using a non-standard port?

    I have tried...
    Code:
    cd #sh:yourusernameATexample.com:[port]/home/username/
    ...as well as using Shell Link in the menu and entering userATexample.com:[port]. Nothing works.

    Does anybody know?

    --
    Note: I have had to replace the AT signs as the forum does not let me type in the proper symbol because of spammer protection, until I have made 15 posts.

  2. #2
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,307
    Hey,

    I am able to establish an SSH session using this syntax:

    Code:
    cd sh://user@server:1234/tmp/

  3. #3
    Just Joined!
    Join Date
    Jan 2012
    Posts
    2
    Yeah, that's right. I realised that sshd was not listening on any ports at all on the internal VPN interface, which I was trying to connect to.

    Cheers

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •