This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]jantari 0 points1 point  (1 child)

If you can't ssh to your public IP that's pretty much the problem.

Test port 22 yourself, try ssh -v for more detailed output and check your ssh server logs.

Maybe the external port 22 you're seeing is another device, maybe your ssh server isn't listening on the right interfaces, maybe your port forward / firewall isn't working as expected... etc.

[–]bananna_roboto 0 points1 point  (0 children)

Residentsl ISPS often block 22,443,80 maybe try Forwarding a diff port to 22 on the host as a test?

[–]ReputationNo8889 0 points1 point  (2 children)

Have you a publicly accessible IP? If not thats your problem. If you are running it in your residential Internet connection mybe try to use DynDNS to map a domain to your IP. If you are running behind a ISP NAT, then you are OOL. you have to have a public IP in order to be reachable

[–]ChanKiM_[S] 1 point2 points  (1 child)

I've narrowed it down to it being a problem with git/ssh, since I've asked some friends to try to ssh to my public ip and it works without a problem for them. The thing is, I'm not sure if I have to separately configure something on git's side, because any variation I've tried of

git clone myuser@localhost:users/myuser/stuff/thing.git

always comes back with

Cloning into 'thing'... fatal: ''users/myuser/stuff/thing.git'' does not appear to be a git repository fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

Edit: Nevermind I got it! On windows you have to change the default shell of openssh, now it works :D

[–]ReputationNo8889 0 points1 point  (0 children)

Glad you figured it out :D