-bash: scp: command not foundÎÊÌâ½â¾ö
-
#
scp -
-bash:
scp: command not found
- ½â¾ö˼·£ºÔÚһ̨ÔËÐÐÕý³£µÄcentosϵͳÉÏÖ´ÐÐÃüÁ²é¿´scpËùÒÀÀµµÄ°²×°°ü£º
- rpm -qf /usr/bin/scp
openssh-clients-4.3p2-41.el5£¨Õâ¸ö°²×°°ü¸ù¾Ý×Ô¼ºÏµÍ³¿ÉÄÜʹÓò»Í¬£© - È»ºóÔÚcentos6.0ϵͳÉÏʹÓÃyum°²×°Õâ¸ö°ü¼´¿É
- #yum -y install openssh-clients
- ÏÖÔھͿÉÒÔÕý³£Ê¹ÓÃÀ²¡£¡£¡£
- scp
usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
[-l limit] [-o ssh_option] [-P port] [-S program]
[[user@]host1:]file1 ... [[user@]host2:]file2 ½ñÌì·¢ÏÖÒ»¸öÆæ¹ÖµÄÎÊÌ⣺ Óà scp Ïò server ´«ÎļþµÄʱ£¬ ÔÚÊäÈëÃÜÂëÖ®ºó£¬ scp Ìáʾ£ºÕÒ²»µ½ scp£¬ ÈçÏ£º
yyc@localhost ~/private/share $ scp Makefile admin@x.x.x.x:/admin/test admin@x.x.x.x's password: (Input my password here) bash: scp: command not found lost connection
google ÁËһϣ¬·¢ÏÖûÓÐÌ«ºÏÊʵĴ𰸣º¶àÊý¶¼ÊÇ $PATH µÄÉèÖÃÎÊÌâ¡£ ¿ÉÊÇÎÒÕâÀïÃ÷ÏÔ²»ÊÇÕâ¸öÎÊÌ⣺Èç¹ûÒ²ÊÇ»·¾³±äÁ¿ÒýÆðÀ´µÄ»°£¬¾Í»áÔÚÊäÍê scp ÃüÁî²¢»Ø³µÖ®ºó¸ø³öÌáʾ£¬ ¶ø²»Êǵȵ½ÊäÈëÁËÃÜÂëÖ®ºó²Å¸ø³öÌáʾ¡£
ºóÀ´Óà -V Ñ¡Ïî¿´ÁËһϸÃÃüÁîµÄÖ´ÐÐÇé¿ö£º
yc@ITC-208024 ~/private/share $ scp -v Makefile admin@x.x.x.x:/ts Executing: program /usr/bin/ssh host x.x.x.x, user admin, command scp -v -t -- /ts OpenSSH_5.8p1-hpn13v10, OpenSSL 1.0.0d 8 Feb 2011 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Connecting to x.x.x.x [x.x.x.x] port 22. debug1: Connection established. debug1: identity file /home/yyc/.ssh/id_rsa type -1 debug1: identity file /home/yyc/.ssh/id_rsa-cert type -1 debug1: identity file /home/yyc/.ssh/id_dsa type -1 debug1: identity file /home/yyc/.ssh/id_dsa-cert type -1 debug1: identity file /home/yyc/.ssh/id_ecdsa type -1 debug1: identity file /home/yyc/.ssh/id_ecdsa-cert type -1 debug1: Remote protocol version 1.99, remote software version OpenSSH_4.3 debug1: match: OpenSSH_4.3 pat OpenSSH_4* debug1: Remote is NON-HPN aware debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_5.8p1-hpn13v10 debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: AUTH STATE IS 0 debug1: REQUESTED ENC.NAME is 'aes128-ctr' debug1: kex: server->client aes128-ctr hmac-md5 none debug1: REQUESTED ENC.NAME is 'aes128-ctr' debug1: kex: client->server aes128-ctr hmac-md5 none debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP debug1: SSH2_MSG_KEX_DH_GEX_INIT sent debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY debug1: Server host key: RSA a9:29:40:1d:c8:15:f7:e2:de:f6:83:6d:a1:2b:40:30 debug1: Host 'x.x.x.x' is known and matches the RSA host key. debug1: Found key in /home/yyc/.ssh/known_hosts:5 debug1: ssh_rsa_verify: signature correct debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: Roaming not allowed by server debug1: SSH2_MSG_SERVICE_REQUEST sent debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey,gssapi-with-mic,password debug1: Next authentication method: publickey debug1: Trying private key: /home/yyc/.ssh/id_rsa debug1: read PEM private key done: type RSA debug1: Authentications that can continue: publickey,gssapi-with-mic,password debug1: Trying private key: /home/yyc/.ssh/id_dsa debug1: Trying private key: /home/yyc/.ssh/id_ecdsa debug1: Next authentication method: password admin@x.x.x.x's password: debug1: Authentication succeeded (password). Authenticated to x.x.x.x ([x.x.x.x]:22). debug1: HPN to Non-HPN Connection debug1: Final hpn_buffer_size = 2097152 debug1: HPN Disabled: 0, HPN Buffer Size: 2097152 debug1: channel 0: new [client-session] debug1: Enabled Dynamic Window Scaling debug1: Entering interactive session. debug1: Sending command: scp -v -t -- /ts debug1: client_input_channel_req: channel 0 rtype exit-status reply 0 bash: scp: command not found debug1: channel 0: free: client-session, nchannels 1 debug1: fd 0 clearing O_NONBLOCK debug1: fd 1 clearing O_NONBLOCK Transferred: sent 2320, received 1720 bytes, in 0.0 seconds Bytes per second: sent 55644.9, received 41254.0 debug1: Exit status 127 lost connection
´ÓÉÏÃæ¿ÉÒÔ¿´³ö£¬±¾µØµÄ scp ÒѾ³É¹¦µÄºÍ server ½¨Á¢ÁËÁ¬½Ó£¬½øÐÐÁËÈÏÖ¤£¬ ²¢ÇÒÏò Server ·¢ËÍÁËÒ»¸öÃüÁ scp -v -t ¨C/ts¡£ ¶ø¾ÍÔÚÕâÖ®ºó£¬·¢ÏÖÁËÇ°Ãæ¿´µ½µÄÄǸöÌáʾ£º "Command not found"¡£
Õâʱ²ÅÏëÆðÀ´£¬ server ¶ËÊÇÒ»¸ö¶¨ÖƵķþÎñÆ÷£¬ÉÏÃæÓ¦¸ÃûÓÐ scp ³ÌÐò£¬Ò²¾ÍÊÇ˵£º ÊÇ Server ûÓÐÕÒµ½ scp £¬ ¶ø²»ÊDZ¾µØ¡£
ÍƼöÐÅÏ¢
- linuxÃüÁîѧϰ±Ê¼Ç£¨11£©£ºnlÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨5£©£ºrmÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨4£©£ºmkdirÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨1£©£ºlsÃüÁî
- ½«CentosµÄyumÔ´¸ü»»Îª¹úÄڵİ¢ÀïÔÆÔ´
- ʹÓÃNginxÌí¼Óheader·ÀÖ¹ÍøÒ³±»frame
- linuxϼÓËÙscp´«Êä´óÎļþµÄËÙ¶È
- linuxϵͳÉ϶ÔnginxÈÕÖ¾·Ö¸î´¦Àí
- lnmp/nginxϵͳÕæÕýÓÐЧµÄͼƬ·ÀµÁÁ´ÍêÕûÉèÖÃÏê½â
- Í»ÆÆÊ®Íò²¢·¢µÄNginxµÄÅäÖü°ÓÅ»¯
ÈÈÃÅÐÅÏ¢
- nohup: redirecting stderr to stdou....
- ʹÓÃlog_formatΪNginx·þÎñÆ÷ÉèÖøüÏêϸµÄÈÕÖ¾¸ñʽ
- jquery easyUI--dataGrid-Json
- [Ô´´]·ÂGoogle Reader¡¢ÐÂÀË΢²©¡¢ÌÚѶ΢²©µ....
- ÀûÓÃKeepalived+mysql¹¹½¨¸ß¿ÉÓÃMySQLË«Ö÷×Ô¶....
- Nginx+keepalivedʵÏÖ¸ºÔؾùºâºÍË«»úÈȱ¸¸ß¿ÉÓÃ
- jqueryʵÏÖÒ³Ãæ¼ÓÔؽø¶ÈÌõ
- Rolling cURL: PHP²¢·¢×î¼Ñʵ¼ù
- codeigniter ·ÓÉÖÕ¼«ÓÅ»¯(url rewrite)
- linuxÏÂÉèÖÃsshÎÞÃÜÂëµÇ¼
×î½ü¸üÐÂ
- ²éÕÒ²¢É¾³ý.svnĿ¼Îļþ
- redis ÆßÖÖÊý¾ÝÀàÐ͵ÄʹÓó¡¾°
- linux ÏÂÎļþ¸´ÖƵ½windowsÏÂÂÒÂëµÄ½â¾ö°ì·¨
- nginx³öÏÖ502 upstream sent too big he....
- linuxÏÂsudoÅäÖÃÏê½â
- linuxÃüÁîѧϰ±Ê¼Ç£¨15£©£ºtailÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨14£©£ºheadÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨13£©£ºlessÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨12£©£ºmoreÃüÁî
- ¼ÓÃÜËã·¨±È½Ï3DES AES RSA ECC MD5 SHA1µÈ
ÆÀÂÛ