Skip to content
This repository was archived by the owner on Jan 17, 2021. It is now read-only.
This repository was archived by the owner on Jan 17, 2021. It is now read-only.

Non standard ssh port not working #19

Closed

Description

@sladec

Tried to specify a different port for ssh on my server
sshcode [email protected]:port returns error
sshcode [email protected] --ssh-flags '-p xxxx' is ignored

How should it be done?

Activity

  1. nhooyr commented on Apr 20, 2019

    @nhooyr
    Contributor

    Unfortunately cannot be done at the moment.

  2. ammario commented on Apr 20, 2019

    @ammario
    Member

    @nhooyr why not?

  3. nhooyr commented on Apr 20, 2019

    @nhooyr
    Contributor

    I guess you culd do sshcode --skipsync [email protected] -p 8443. Only issue is it won't work with rsync.

    Simplest solution would be for you to specify the port in your ~/.ssh/config.

  4. ammario commented on Apr 20, 2019

    @ammario
    Member

    rsync has a thing for passing ssh flags, should be a simple change.

  5. self-assigned this
    on Apr 20, 2019
  6. added 2 commits that reference this issue on Apr 20, 2019
    afc57e9
    fedfbb7
  7. added a commit that references this issue on Apr 21, 2019
    53fc8fa
  8. sladec commented on Apr 22, 2019

    @sladec
    Author

    Hi
    Thanks for the quick update.
    Any info on how to do this now?
    I am still getting an error.
    `

  9. nhooyr commented on Apr 22, 2019

    @nhooyr
    Contributor

    sshcode --ssh-flags "-p 2222"

  10. sladec commented on Apr 22, 2019

    @sladec
    Author
  11. nhooyr commented on Apr 22, 2019

    @nhooyr
    Contributor

    Sorry I can't see the image, it was embedded incorrectly.

  12. mogwai commented on May 17, 2019

    @mogwai

    Example here

    ./sshcode [email protected] --ssh-flags "-p 1234" /home/user/work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions