You are not logged in.
I'm trying to reverse ssh into my home computer (Arch) and I'm using Arch on the computer I'm working on.
The other person, from my home computer types in
ssh -R 5000:localhost:5000 p@MYIP
Then I (as user 'ravi') type in
ssh -p 5000 root@localhost
But I keep getting an ssh_exchange_identification error about the connection being refused. This is the same even if I replace 'root' with other users on my home computer.
Help, please? I'd appreciate any direction that someone can give. Both the computers are behind routers, and my router forwards port 22 to my computer, but this hasn't been set up on the home computer.
Offline
You might be having the same problem as me. Try just doing a regular ssh into your localhost and see if you can get in. If not, please continue this discussion in this thread: http://bbs.archlinux.org/viewtopic.php? … 29#p422429
Offline
K, I'll continue in your post. I read that earlier, but didn't want to hijack your thread
Offline
I'm fairly sure I figured it out, see the other thread.
1000
Offline
Does your home computer have sshd running on port 5000? If not, then it would seem like you'd want to use:
ssh -R 5000:localhost:22 p@MYIP
to setup the reverse tunnel, then login as you were trying before:
ssh -p 5000 root@localhost
--
The Amigo
Offline
Yeah, I tried that too. It didn't work.
Logging directly into the home computer worked after the sshd was restarted, so I should try this again.
Thanks
Offline
Have you checked /etc/hosts.allow and allowed localhost connecting to local sshd daemon?
If not, you should add there a line, something like:
sshd: 127.0.0.1
This should make local SSHing work.
Look at /etc/hosts.allow documentation, if you want more advanced access control.
Good Luck
Offline
I have 'sshd: ALL' in both my computers. When I type in 'ssh p@localhost' (regular, not reverse ssh), I am able to login to the 'p' account without any difficulties.
I read somewhere that I should try the '-f -N' set of flags. I've read the man page and don't see how that would help, but I'll give it a shot when trying reverse ssh again.
I am also able to log into my computer from multiple sources over the internet.
thanks.
Offline