openssh sftp的使用

kgzhw 2012-05-16 03:09:05
我下一个openssh的一份代码,编译通过,但是在使用openssh中sftp客户端时直接输入./sftp 会显示如下信息
usage: sftp [-1246Cpqrv] [-B buffer_size] [-b batchfile] [-c cipher]
[-D sftp_server_path] [-F ssh_config] [-i identity_file] [-l limit]
[-o ssh_option] [-P port] [-R num_requests] [-S program]
[-s subsystem | sftp_server] host
sftp [user@]host[:file ...]
sftp [user@]host[:dir[/]]
sftp -b batchfile [user@]host


然后我输入./sftp user@192.168.6.6然后程序打印:
command-line: line 0: Bad configuration option: PermitLocalCommand
Couldn't read packet: Connection reset by peer


真不明白上面是什么意思。linux自带的sftp使用sftp user@192.168.6.6提示需要输入密码。不知道openssh中的sftp为什么有问题。请高手帮忙看看sftp的启动参数是否正确.
...全文
537 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
sdqd2012 2012-07-11
  • 打赏
  • 举报
回复
直接使用
yum install sshd
yum install ssh
安装看看
kgzhw 2012-07-02
  • 打赏
  • 举报
回复
改用curl了

23,115

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧