SSH Secure File Transfer 传文件出问题
来源:互联网 发布:淘宝外卖商家服务费 编辑:程序博客网 时间:2024/05/22 03:40
SSH Secure File Transfer 传文件出问题
用SSH Secure File Transfer 传文件时总是出错,提示信息为:
"File transfer server could not be started 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."
解决办法:
罪魁祸首就是.bashrc文件。[break]
在bash的联机手册里有一段,说的是关于通过RSHD登录系统时,系统要执行.bashrc文件。而这 个文件是在启动一个交互SHELL时才要执行的。而在SSH登录时,系统就要执行.bashrc文件。而SSH登录系统是非交互的。如果执 行.bashrc文件时,产生输入与输出就会出在我遇到的这个问题。
解决办法是:在.bashrc文件中,测试一下是交互SHELL还是非交互的,如果是非交互的,则直接退出即可。
一般在.bashrc文件的最前边加入下面这行就可以了:
[ -z "$PS1" ] && return
或者:
[ $- != *i* ] && return
"File transfer server could not be started 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."
解决办法:
罪魁祸首就是.bashrc文件。[break]
在bash的联机手册里有一段,说的是关于通过RSHD登录系统时,系统要执行.bashrc文件。而这 个文件是在启动一个交互SHELL时才要执行的。而在SSH登录时,系统就要执行.bashrc文件。而SSH登录系统是非交互的。如果执 行.bashrc文件时,产生输入与输出就会出在我遇到的这个问题。
解决办法是:在.bashrc文件中,测试一下是交互SHELL还是非交互的,如果是非交互的,则直接退出即可。
一般在.bashrc文件的最前边加入下面这行就可以了:
[ -z "$PS1" ] && return
或者:
[ $- != *i* ] && return
- SSH Secure File Transfer 传文件出问题
- ssh secure file transfer连接linux上传文件,扯蛋?
- SSH Secure File Transfer上传文件错误:encountered 1 errors during the transfer解决办法
- SSH Secure File Transfer 传输错误解决方法
- SSH Secure File Transfer 新手小贴士
- SSH Secure Shell File Transfer 突然打不开
- 通过SSH安全协议传输文件(SecureCRT, SSH Secure File Transfer Client)
- 使用SSH Secure File Transfer给RHEL5传JSP网站,出现文件夹大小写问题
- SSH Secure File Transfer Client 传输速度过慢
- SSH Secure File Transfer Client 与 网络抓包工具
- Transfer Error: "encountered 1 errors during the transfer" via SSH Secure File Transfer
- SSH Secure Shell Client连上了,ssh secure File Transfer却打不开
- 请问SSH Secure File Transfer Client和SSH Secure Shell Client这两个工具分别是干什么用的?
- F-Secure SSH File Transfer遇到错误"too many authentication failures for root"
- SSH Secure File Transfer 在linux下 中文乱码的解决办法
- SSH Secure File Transfer Client连接远程设备报“algorithm negotiation failed”错的解决方法
- ssd sftp传输文件问题出现 failed to open a secure file transfer session
- ssd sftp传输文件问题出现 failed to open a secure file transfer session
- 解决win2008下IIS7的HTTP500错误的技巧
- N个鸡蛋M个篮子
- DB2如何将数据库表解锁
- 一次使用vld检测内存泄漏的修正过程
- 待研究对象
- SSH Secure File Transfer 传文件出问题
- 06事务、视图和索引
- fedora无法播放mp3问题解决办法
- 运行java的几种方法
- 倒转一个句子,如果输入的句子为I am a student. 输出为:student. a am I
- 非递归先序遍历二叉树、非递归中序遍历二叉树、非递归后序遍历二叉树
- 我在北京工作这几年 – 番外篇
- Linux内核配置系统浅析
- Blackfin系列开发成员blackfin592!