Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
My Server is Ubuntu 14.04.5 LTS and I am able to connect SSH in Putty, but not able to connect via WinSCP.
When I try to connect via WinSCP it gives below error:
Connection has been unexpectedly closed. server sent command exit status 127
–
To access your sftp from other hosts, please make sure following is installed and configured properly.
Installed OpenSSH servers
Configured
sshd_config
PubkeyAuthentication yes
Subsystem sftp internal-sftp
Added your public key to ~/.ssh/authorized_keys
Start the ssh server with port 22/TCP open
# /etc/init.d/sshd start
# iptables -I INPUT -j ACCEPT -p tcp --dport 22
Finally, test
$ sftp <login>@<hostname>
Thanks for contributing an answer to Stack Overflow!
-
Please be sure to
answer the question
. Provide details and share your research!
But
avoid
…
-
Asking for help, clarification, or responding to other answers.
-
Making statements based on opinion; back them up with references or personal experience.
To learn more, see our
tips on writing great answers
.