I attemp to use WinSCP to connect to my CentOS, but got a access denied reply. My first suspect is that the correspoing service or port, which I don't know, is not enabled.
Could anyone provide troubleshooting steps?
migrated from stackoverflow.com Dec 9 '09 at 16:59
This question came from our site for professional and enthusiast programmers.
scp uses ssh IIRC, which uses port 22.
You can check if the server is listening with telnet:
Then, if the service is not enabled, you should set it up.
Make sure that the sshd process is running on your CentOS-machine (
as root. If you see something along the lines of
The machines firewall should accept connections to port 22. If you do not have one of those lines, as root, run
To allow incomming connections to port 22 (which sshd uses for ssh and sftp).