Python论坛  - 讨论区

标题:[python-chinese] SCP命令

2007年09月04日 星期二 15:51

Geoffery>>>嘎瑞>>>XuLi geofferyli在gmail.com
星期二 九月 4 15:51:20 HKT 2007

UNIXϵͳÖÐÈç¹û´ÓA·þÎñÆ÷ʹÓÃSCPÃüÁî´«ÊäÎļþÖÁB·þÎñÆ÷¡£
ÄÇôB·þÎñÆ÷ÐèÒªÌí¼ÓA·þÎñÆ÷µÄÈÏÖ¤ÅäÖÃÂð£¿ÈçºÎÅäÖã¿

ÏÖÔÚµÄÎÊÌ⣺
scp -r ${HOSTIP}:${PATH1} ${PATH2} > /dev/null
password:

Permission denied

лл

-- 
-------------------------------------------------------------------
python-chinese list
PythonÖÐÎļ¼ÊõÌÖÂÛÓʼþÁбí
·¢ÑÔ: ·¢Óʼþµ½ python-chinese在lists.python.cn
¶©ÔÄ: ·¢ËÍ subscribe µ½ python-chinese-request在lists.python.cn
Í˶©: ·¢ËÍ unsubscribe µ½  python-chinese-request在lists.python.cn
Ïêϸ˵Ã÷: http://python.cn/mailman/listinfo/python-chinese
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070904/b8645101/attachment.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年09月04日 星期二 17:19

yalexfan yalexfan在gmail.com
星期二 九月 4 17:19:46 HKT 2007

Sftp¿ÉÒÔô

 

From: python-chinese-bounces在lists.python.cn
[mailto:python-chinese-bounces在lists.python.cn] On Behalf Of Geoffery>>>¸ÂÈð
>>>XuLi
Sent: Tuesday, September 04, 2007 3:51 PM
To: python-chinese在lists.python.cn
Subject: [python-chinese] SCPÃüÁî

 

UNIXϵͳÖÐÈç¹û´ÓA·þÎñÆ÷ʹÓÃSCPÃüÁî´«ÊäÎļþÖÁB·þÎñÆ÷¡£

ÄÇôB·þÎñÆ÷ÐèÒªÌí¼ÓA·þÎñÆ÷µÄÈÏÖ¤ÅäÖÃÂð£¿ÈçºÎÅäÖã¿

 

ÏÖÔÚµÄÎÊÌ⣺

scp -r ${HOSTIP}:${PATH1} ${PATH2} > /dev/null

password:

 

Permission denied

 

лл

-- 
-------------------------------------------------------------------
python-chinese list
PythonÖÐÎļ¼ÊõÌÖÂÛÓʼþÁбí
·¢ÑÔ: ·¢Óʼþµ½ python-chinese在lists.python.cn  python-chinese在lists.
python.cn> 
¶©ÔÄ: ·¢ËÍ subscribe µ½ python-chinese-request在lists.python.cn
Í˶©: ·¢ËÍ unsubscribe µ½  python-chinese-request在lists.python.cn 
Ïêϸ˵Ã÷: http://python.cn/mailman/listinfo/python-chinese 

-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070904/9711e93a/attachment-0001.htm 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年09月04日 星期二 17:28

Geoffery>>>嘎瑞>>>XuLi geofferyli在gmail.com
星期二 九月 4 17:28:18 HKT 2007

ÅäÖÃsshµÄȨÏÞ,id_rsaÎļþµÄÅäÖã¬ÊÇ·ñÐèÒªrootÕÊ»§¡£

On 9/4/07, yalexfan <yalexfan在gmail.com> wrote:
>
>  Sftp¿ÉÒÔô
>
>
>
> *From:* python-chinese-bounces在lists.python.cn [mailto:
> python-chinese-bounces在lists.python.cn] *On Behalf Of *Geoffery>>>¸ÂÈð
> >>>XuLi
> *Sent:* Tuesday, September 04, 2007 3:51 PM
> *To:* python-chinese在lists.python.cn
> *Subject:* [python-chinese] SCPÃüÁî
>
>
>
> UNIXϵͳÖÐÈç¹û´ÓA·þÎñÆ÷ʹÓÃSCPÃüÁî´«ÊäÎļþÖÁB·þÎñÆ÷¡£
>
> ÄÇôB·þÎñÆ÷ÐèÒªÌí¼ÓA·þÎñÆ÷µÄÈÏÖ¤ÅäÖÃÂð£¿ÈçºÎÅäÖã¿
>
>
>
> ÏÖÔÚµÄÎÊÌ⣺
>
> scp -r ${HOSTIP}:${PATH1} ${PATH2} > /dev/null
>
> password:
>
>
>
> Permission denied
>
>
>
> лл
>
> --
> -------------------------------------------------------------------
> python-chinese list
> PythonÖÐÎļ¼ÊõÌÖÂÛÓʼþÁбí
> ·¢ÑÔ: ·¢Óʼþµ½ python-chinese在lists.python.cn
> ¶©ÔÄ: ·¢ËÍ subscribe µ½ python-chinese-request在lists.python.cn
> Í˶©: ·¢ËÍ unsubscribe µ½  python-chinese-request在lists.python.cn
> Ïêϸ˵Ã÷: http://python.cn/mailman/listinfo/python-chinese
>
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>



-- 
-------------------------------------------------------------------
python-chinese list
PythonÖÐÎļ¼ÊõÌÖÂÛÓʼþÁбí
·¢ÑÔ: ·¢Óʼþµ½ python-chinese在lists.python.cn
¶©ÔÄ: ·¢ËÍ subscribe µ½ python-chinese-request在lists.python.cn
Í˶©: ·¢ËÍ unsubscribe µ½  python-chinese-request在lists.python.cn
Ïêϸ˵Ã÷: http://python.cn/mailman/listinfo/python-chinese
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070904/5bc3d1b8/attachment.htm 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年09月04日 星期二 17:41

Zoom.Quiet zoom.quiet在gmail.com
星期二 九月 4 17:41:51 HKT 2007

On 9/4/07, Geoffery>>>嘎瑞>>>XuLi <geofferyli在gmail.com> wrote:
> UNIX系统中如果从A服务器使用SCP命令传输文件至B服务器。
> 那么B服务器需要添加A服务器的认证配置吗?如何配置?
嗬嗬嗬,非常简单自然的,
都得有 usera 的帐号,
如果 A>>B 的scp;
需要在 B 的 /home/usera/.ssh/authorized_keys 中有
usera 在A中生成的公匙,
这样 B可以正确认证来自A的SSH2请求,
则,进行SCP 时就不用口令输入了;
反之同样
>
> 现在的问题:
> scp -r ${HOSTIP}:${PATH1} ${PATH2} > /dev/null
> password:
>
> Permission denied
>
> 谢谢
>
> --
> -------------------------------------------------------------------
> python-chinese list
> Python中文技术讨论邮件列表
> 发言: 发邮件到 python-chinese在lists.python.cn
> 订阅: 发送 subscribe 到 python-chinese-request在lists.python.cn
> 退订: 发送 unsubscribe 到
> python-chinese-request在lists.python.cn
> 详细说明: http://python.cn/mailman/listinfo/python-chinese
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to
> python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to
> python-chinese-request在lists.python.cn
> Detail Info:
> http://python.cn/mailman/listinfo/python-chinese
>


-- 
'''Time is unimportant, only life important!
过程改进的目标不是高品质产品,而是促生靠谱的人的组织!
'''http://zoomquiet.org
blog  @ http://blog.zoomquiet.org/pyblosxom/
wiki  @ http://wiki.woodpecker.org.cn/moin/ZoomQuiet
scrap @ http://floss.zoomquiet.org
share @ http://share.zoomquiet.org
douban@ http://www.douban.com/people/zoomq/
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Pls. usage OOo to replace M$ Office. http://zh.openoffice.org
Pls. usage 7-zip to replace WinRAR/WinZip.  http://7-zip.org
You can get the truely Freedom 4 software.

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年09月04日 星期二 17:47

Geoffery>>>嘎瑞>>>XuLi geofferyli在gmail.com
星期二 九月 4 17:47:37 HKT 2007

лл¡£
Ó¦¸Ã¾ÍÊÇÕâ¸öÎÊÌ⣬¸Õ²Å¹«³×һֱûÓÐÅä³É¹¦¡£

On 9/4/07, Zoom. Quiet <zoom.quiet在gmail.com> wrote:
>
> On 9/4/07, Geoffery>>>¸ÂÈð>>>XuLi <geofferyli在gmail.com> wrote:
> > UNIXϵͳÖÐÈç¹û´ÓA·þÎñÆ÷ʹÓÃSCPÃüÁî´«ÊäÎļþÖÁB·þÎñÆ÷¡£
> > ÄÇôB·þÎñÆ÷ÐèÒªÌí¼ÓA·þÎñÆ÷µÄÈÏÖ¤ÅäÖÃÂð£¿ÈçºÎÅäÖã¿
> àÀàÀàÀ£¬·Ç³£¼òµ¥×ÔÈ»µÄ£¬
> ¶¼µÃÓÐ usera µÄÕʺţ¬
> Èç¹û A>>B µÄscp;
> ÐèÒªÔÚ B µÄ /home/usera/.ssh/authorized_keys ÖÐÓÐ
> usera ÔÚAÖÐÉú³ÉµÄ¹«³×£¬
> ÕâÑù B¿ÉÒÔÕýÈ·ÈÏÖ¤À´×ÔAµÄSSH2ÇëÇó£¬
> Ôò£¬½øÐÐSCP ʱ¾Í²»ÓÿÚÁîÊäÈëÁË£»
> ·´Ö®Í¬Ñù
> >
> > ÏÖÔÚµÄÎÊÌ⣺
> > scp -r ${HOSTIP}:${PATH1} ${PATH2} > /dev/null
> > password:
> >
> > Permission denied
> >
> > лл
> >
> > --
> > -------------------------------------------------------------------
> > python-chinese list
> > PythonÖÐÎļ¼ÊõÌÖÂÛÓʼþÁбí
> > ·¢ÑÔ: ·¢Óʼþµ½ python-chinese在lists.python.cn
> > ¶©ÔÄ: ·¢ËÍ subscribe µ½ python-chinese-request在lists.python.cn
> > Í˶©: ·¢ËÍ unsubscribe µ½
> > python-chinese-request在lists.python.cn
> > Ïêϸ˵Ã÷: http://python.cn/mailman/listinfo/python-chinese
> > _______________________________________________
> > python-chinese
> > Post: send python-chinese在lists.python.cn
> > Subscribe: send subscribe to
> > python-chinese-request在lists.python.cn
> > Unsubscribe: send unsubscribe to
> > python-chinese-request在lists.python.cn
> > Detail Info:
> > http://python.cn/mailman/listinfo/python-chinese
> >
>
>
> --
> '''Time is unimportant, only life important!
> ¹ý³Ì¸Ä½øµÄÄ¿±ê²»ÊǸßÆ·ÖʲúÆ·£¬¶øÊÇ´ÙÉú¿¿Æ×µÄÈ˵Ä×éÖ¯!
> '''http://zoomquiet.org
> blog  @ http://blog.zoomquiet.org/pyblosxom/
> wiki  @ http://wiki.woodpecker.org.cn/moin/ZoomQuiet
> scrap @ http://floss.zoomquiet.org
> share @ http://share.zoomquiet.org
> douban@ http://www.douban.com/people/zoomq/
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> Pls. usage OOo to replace M$ Office. http://zh.openoffice.org
> Pls. usage 7-zip to replace WinRAR/WinZip.  http://7-zip.org
> You can get the truely Freedom 4 software.
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese




-- 
-------------------------------------------------------------------
python-chinese list
PythonÖÐÎļ¼ÊõÌÖÂÛÓʼþÁбí
·¢ÑÔ: ·¢Óʼþµ½ python-chinese在lists.python.cn
¶©ÔÄ: ·¢ËÍ subscribe µ½ python-chinese-request在lists.python.cn
Í˶©: ·¢ËÍ unsubscribe µ½  python-chinese-request在lists.python.cn
Ïêϸ˵Ã÷: http://python.cn/mailman/listinfo/python-chinese
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070904/2479e224/attachment.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年09月07日 星期五 08:59

憨狗 hackgou在gmail.com
星期五 九月 7 08:59:53 HKT 2007

LZ的问题似乎是两个问题:需要password而且Permission denied
Permission是目录/文件的读权限问题
authorized_keys是解决ssh/scp的时候需不需要password的问题,
这是两个不一样的东东呢

Geoffery>>>嘎瑞>>>XuLi 写道:
> 谢谢。
> 应该就是这个问题,刚才公匙一直没有配成功。
>  
> On 9/4/07, *Zoom. Quiet* <zoom.quiet at gmail.com
> zoom.quiet at gmail.com>> wrote:
> 
>     On 9/4/07, Geoffery>>>嘎瑞>>>XuLi <geofferyli at gmail.com
>     geofferyli at gmail.com>> wrote:
>     > UNIX系统中如果从A服务器使用SCP命令传输文件至B服务器。
>     > 那么B服务器需要添加A服务器的认证配置吗?如何配置?
>     嗬嗬嗬,非常简单自然的,
>     都得有 usera 的帐号,
>     如果 A>>B 的scp;
>     需要在 B 的 /home/usera/.ssh/authorized_keys 中有
>     usera 在A中生成的公匙,
>     这样 B可以正确认证来自A的SSH2请求,
>     则,进行SCP 时就不用口令输入了;
>     反之同样
>     >
>     > 现在的问题:
>     > scp -r ${HOSTIP}:${PATH1} ${PATH2} > /dev/null
>     > password:
>     >
>     > Permission denied
>     >
>     > 谢谢
>     >
>     > --
>     > -------------------------------------------------------------------
>     > python-chinese list
>     > Python中文技术讨论邮件列表
>     > 发言: 发邮件到 python-chinese at lists.python.cn
>     python-chinese at lists.python.cn>
>     > 订阅: 发送 subscribe 到 python-chinese-request at lists.python.cn
>     python-chinese-request at lists.python.cn>
>     > 退订: 发送 unsubscribe 到
>     > python-chinese-request at lists.python.cn
>     python-chinese-request at lists.python.cn>
>     > 详细说明: http://python.cn/mailman/listinfo/python-chinese
>     > _______________________________________________
>     > python-chinese
>     > Post: send python-chinese at lists.python.cn
>     python-chinese at lists.python.cn>
>     > Subscribe: send subscribe to
>     > python-chinese-request at lists.python.cn
>     python-chinese-request at lists.python.cn>
>     > Unsubscribe: send unsubscribe to
>     > python-chinese-request at lists.python.cn
>     python-chinese-request at lists.python.cn>
>     > Detail Info:
>     > http://python.cn/mailman/listinfo/python-chinese
>     >
> 
> 
>     --
>     '''Time is unimportant, only life important!
>     过程改进的目标不是高品质产品,而是促生靠谱的人的组织!
>     '''http://zoomquiet.org
>     blog  @ http://blog.zoomquiet.org/pyblosxom/
>     wiki  @ http://wiki.woodpecker.org.cn/moin/ZoomQuiet
>     scrap @ http://floss.zoomquiet.org
>     share @ http://share.zoomquiet.org
>     douban@ http://www.douban.com/people/zoomq/
>     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>     Pls. usage OOo to replace M$ Office. http://zh.openoffice.org
>     Pls. usage 7-zip to replace WinRAR/WinZip.   http://7-zip.org
>     You can get the truely Freedom 4 software.
>     _______________________________________________
>     python-chinese
>     Post: send python-chinese at lists.python.cn
>     python-chinese at lists.python.cn>
>     Subscribe: send subscribe to python-chinese-request at lists.python.cn
>     python-chinese-request at lists.python.cn>
>     Unsubscribe: send unsubscribe to  
>     python-chinese-request at lists.python.cn
>     python-chinese-request at lists.python.cn>
>     Detail Info: http://python.cn/mailman/listinfo/python-chinese
> 
> 
> 
> 
> -- 
> -------------------------------------------------------------------
> python-chinese list
> Python中文技术讨论邮件列表
> 发言: 发邮件到 python-chinese at lists.python.cn
> python-chinese at lists.python.cn>
> 订阅: 发送 subscribe 到 python-chinese-request at lists.python.cn
> python-chinese-request at lists.python.cn>
> 退订: 发送 unsubscribe 到  python-chinese-request at lists.python.cn
> python-chinese-request at lists.python.cn>
> 详细说明: http://python.cn/mailman/listinfo/python-chinese
> <http://python.cn/mailman/listinfo/python-chinese>
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese

-- 
blog: http://hackgou.itbbq.com
Email/IM : HackGou#Gmail.com
PGP KeyID: hackgou#Gmail.com
PGP KeyServ: subkeys.pgp.net

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年09月12日 星期三 20:46

doudou doudou array.doudou在gmail.com
星期三 九月 12 20:46:47 HKT 2007

$ scp -P port file username在host:

就行了,注意最后有个冒号,代表这个用户在host上面的根目录,当然冒号后可以写完整的路径。

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号