.bashrc中的配置影响sftp

有时.bahsrc中的环境变量配置会影响sftp,这这种情况下可以把相关环境变量设置.bash_profile中.

These errors are usually caused by commands in a shell run-control file (.cshrc.profile.bashrc, etc.) that produce output to the terminal.

This output interferes with the communication between the SSH daemon and the SFTP-server subsystem. [http://www.nics.utk.edu/faq/general-why-does-sftp-exit-error-most-likely-sftp-server-not-path-user-server-side]

关于.bsharc与.bash_profile的区别参考:https://blog.csdn.net/sch0120/article/details/70256318

2021-04-12

posted @ 2021-04-12 20:00  Deven_xu  阅读(199)  评论(0编辑  收藏  举报