I have two computers connected to the same subnet.
The first (A) is running 14.04, the second (B) 12.04
I can ssh from the first to the second, but not from the second to the first.
Don't really know where to start to figure out why there's this difference.
However nmap is giving quite different results:
Computer (A), which is the one I can't get into:
PORT STATE SERVICE
631/tcp open ipp
Computer (B), which I can get into:
PORT STATE SERVICE
22/tcp open ssh
53/tcp open domain
139/tcp open netbios-ssn
445/tcp open microsoft-ds
631/tcp open ipp
Since the only port that's open on both is 631, I've tried ssh'ing from B to A specifying port 631, but that doesn't work either.
Could anybody please advise how to proceed?
Install
openssh server
onPC A
.More details you have here
Then you will can
ssh
intoPC A
fromPC B
SSH
work onport 22
.Edit 1
If you have installed
ssh-server
on PC A you can check with commandnetstat -at
do server expect connection onport 22
This is output from my PC
Important is:
If you set
ufw
or somefirewall
disable it and try connect then.Also restart
ssh
serviceYou will see if service start.
Thanks very much for your responses. I finally resolved this problem, thanks to the very helpful thread
Bizarre SSH Problem - It won't even start
The problem was that in the version of sshd_server that I downloaded with
There were three lines at the bottom of the sshd_config file that was installed, which proved to be the source the problem
When I removed these lines my remote login problems were resolved. To diagnose the problem, I followed the suggestion in the above thread, which suggested closing sshd with
then running in debug mode
In debug mode, sshd flagged the bad options in the default sshd_config file.
After removing these lines, and restarting, port 22 was open.