FreeSSHd is installed on Windows Server 2003, not on the C: drive but on another drive, D:. When I command-prompt to the D: drive and type in ssh, it tells me ssh is not recognised.

I added myself as a user to FreeSSHd with a hashed password and enabled SSH.

The Windows Firewall service is not running.

I can connect to the server using Remote Desktop Connection. I want to use ssh with Mercurial source code management system.

While I am logged onto the server via Remote Desktop connection, I can also connect to the server via ssh and putty on the client machine.

As soon as I log off from the server via Remote Desktop Connection, and I type in on the client:

ssh <username>@<server>

I get:

ssh: Connect to host <server> port 22: Connection refused
link|improve this question

50% accept rate
Is the service running? Is the service running under your user-account on the server? – Tord Holmqvist Dec 8 '11 at 10:10
Hi @Tord, I realised that ssh server stops as soon as I log off from the server via Remote Desktop Connection. The solution is to not log off from the server. I just close the Remote Desktop Connection program on the client. – Geoffrey van Wyk Dec 8 '11 at 10:14
feedback

1 Answer

up vote 0 down vote accepted

The answer is to not log off from the server. That way, the ssh server will keep running. Just close the Remote Desktop Connection program on the client machine.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.