ssh登录 File transfer server could not be stated or it exited unexpectedly exit va

用ssh登录的时候报了这个错?
File transfer server could not be stated or it exited unexpectedly
exit value 0 was returned most likely the sftp-server is not in the path of the user on the server-side

后来发现是服务器/etc的网络权限不够造成的,将/etc的访问权限提高一下就好了,主要原因是远程账号没有对/etc的可读权限造成的,用chmod 755 变成可读就好了。

你可能感兴趣的:(server)