免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3371 | 回复: 3
打印 上一主题 下一主题

solaris ssh: scp: not found ? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-04-22 09:54 |只看该作者 |倒序浏览
我的系统是solaris 7 我在两个改系统中使用scp 拷贝文件,结果输入用户密码后出现:sh: scp: not found\r\n                     lost connection\r\n\r\n我在网上查了一下资料,有人说I\'ve had the same problem on my Solaris8 boxes. It was not the path to scp but the path to shared libraries. Adding the path to ssl to my default library path solved it. On Solaris it is done with \'crle\' - don\'t know about HP-UX. \r\n\r\n\r\n我不知道具体的实施操作,请多指教。

论坛徽章:
0
2 [报告]
发表于 2004-04-22 10:09 |只看该作者

solaris ssh: scp: not found ?

有谁知道,请帮一下忙了

论坛徽章:
0
3 [报告]
发表于 2004-04-22 10:36 |只看该作者

solaris ssh: scp: not found ?

补充:我的两台solaris 之间不能互相scp 但两台solaris 分别向其他的redhat 执行scp 命令都是成功的。redhat 系统向两台 solaris scp 也是不行的。\r\n\r\n大家帮帮忙了\r\n我就想在两台 solaris 系统之间拷贝文件了

论坛徽章:
0
4 [报告]
发表于 2004-04-22 11:05 |只看该作者

solaris ssh: scp: not found ?

问题解决,参考了以下文件\r\n\r\nIf none of this works, put the following in .ssh/environment (or \r\n.ssh2/environment) on the remote host:\r\n\r\nPATH=/usr/local/bin:/usr/bin:/bin\r\n\r\nOf course PATH would be what you need to find scp.  My guess is that scp is in \r\n/usr/local/bin.  This is probably in your login scripts like .profile or \r\n/etc/profile.  The problem is, scp uses ssh in non-login mode, thus the shell is \r\nnot a login shell and the path is not set properly.  The environment file solves \r\nthis for you by making sure the PATH is set properly in these cases.  \r\n\r\nTo test my hypothesis, before creating the PATH entry in the environment file \r\nrun:\r\n\r\n        ssh remote_scp_host \'echo $PATH\'\r\n        \r\nYou will probably just see a very basic PATH without the dir that scp resides \r\nin.  Now create the environment file with a PATH entry and do it again.\r\n\r\nOTOH, if you are running a shell like csh or bash that have individual command \r\nfiles per invocation, e.g. .cshrc or .bashrc, look in there and make sure the \r\nPATH is being set properly and not being reset to something minimal.  The above \r\nssh ... above will help you track it down.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP