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

Non standard ssh port not working #19

Closed
sladec opened this issue Apr 20, 2019 · 9 comments · Fixed by #21
Closed

Non standard ssh port not working #19

sladec opened this issue Apr 20, 2019 · 9 comments · Fixed by #21
Assignees

Comments

@sladec
Copy link

sladec commented Apr 20, 2019

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?

@nhooyr
Copy link
Contributor

nhooyr commented Apr 20, 2019

Unfortunately cannot be done at the moment.

@ammario
Copy link
Member

ammario commented Apr 20, 2019

@nhooyr why not?

@nhooyr
Copy link
Contributor

nhooyr commented Apr 20, 2019

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.

@ammario
Copy link
Member

ammario commented Apr 20, 2019

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

@ammario ammario self-assigned this Apr 20, 2019
ammario added a commit that referenced this issue Apr 20, 2019
ammario added a commit that referenced this issue Apr 20, 2019
- Also use ssh flags when running the download script

Resolves #19
ammario added a commit that referenced this issue Apr 21, 2019
- Also use ssh flags when running the download script

Resolves #19
@sladec
Copy link
Author

sladec commented Apr 22, 2019

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

@nhooyr
Copy link
Contributor

nhooyr commented Apr 22, 2019

sshcode --ssh-flags "-p 2222"

@sladec
Copy link
Author

sladec commented Apr 22, 2019 via email

@nhooyr
Copy link
Contributor

nhooyr commented Apr 22, 2019

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

@mogwai
Copy link

mogwai commented May 17, 2019

Example here

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants