scp does not work and gives the following error message: scp: FATAL: Executing ssh1 i
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
scp does not work and gives the following error message: scp: FATAL: Executing ssh1 i
I have recently installed redhat 7.3 on my machine and had accidentally left out ssh. I manually installed openssh from the following rpms: openssh-3.1p1-14.i386.rpm and openssh-server-3.1p1-14.i386.rpm. Other machines on my network do not have openssh installed, rather the ssh client was configured during the installation of the operating system. When I try to use scp to copy files from another machine to my machine (containing openssh) I get the following error message
scp: warning: Executing scp1.
scp: FATAL: Executing ssh1 in compatibility mode failed (Check that scp1 is in your PATH).
lost connection
If I run this in a verbose format I get the following details:
Executing: program /usr/bin/ssh host mse12, user (unspecified), command scp -v -r -t /usr/local/
OpenSSH_3.5p1, SSH protocols 1.5/2.0, OpenSSL 0x0090701f
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Rhosts Authentication disabled, originating port will not be trusted.
debug1: ssh_connect: needpriv 0
debug1: Connecting to mse12 [192.168.0.209] port 22.
debug1: Connection established.
debug1: identity file /home/akay/.ssh/identity type -1
debug1: identity file /home/akay/.ssh/id_rsa type -1
debug1: identity file /home/akay/.ssh/id_dsa type -1
debug1: Remote protocol version 1.99, remote software version OpenSSH_3.1p1
debug1: match: OpenSSH_3.1p1 pat OpenSSH_2.*,OpenSSH_3.0*,OpenSSH_3.1*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.5p1
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: dh_gen_key: priv key bits set: 135/256
debug1: bits set: 1556/3191
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'mse12' is known and matches the RSA host key.
debug1: Found key in /home/akay/.ssh/known_hosts:17
debug1: bits set: 1564/3191
debug1: ssh_rsa_verify: signature correct
debug1: kex_derive_keys
debug1: newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: waiting for SSH2_MSG_NEWKEYS
debug1: newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: done: ssh_kex2.
debug1: send SSH2_MSG_SERVICE_REQUEST
debug1: service_accept: ssh-userauth
debug1: got SSH2_MSG_SERVICE_ACCEPT
debug1: authentications that can continue: publickey,password,keyboard-interactive
debug1: next auth method to try is publickey
debug1: try privkey: /home/akay/.ssh/identity
debug1: try privkey: /home/akay/.ssh/id_rsa
debug1: try privkey: /home/akay/.ssh/id_dsa
debug1: next auth method to try is keyboard-interactive
debug1: authentications that can continue: publickey,password,keyboard-interactive
debug1: next auth method to try is password
akay@mse12's password:
debug1: ssh-userauth2 successful: method password
debug1: fd 4 setting O_NONBLOCK
debug1: fd 5 setting O_NONBLOCK
debug1: channel 0: new [client-session]
debug1: send channel open 0
debug1: Entering interactive session.
debug1: ssh_session2_setup: id 0
debug1: Sending command: scp -v -r -t /usr/local/
debug1: channel request 0: exec
debug1: channel 0: open confirm rwindow 0 rmax 32768
scp: warning: Executing scp1.
debug1: channel 0: rcvd eof
debug1: channel 0: output open -> drain
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: channel 0: rcvd close
debug1: channel 0: close_read
debug1: channel 0: input open -> closed
scp: FATAL: Executing ssh1 in compatibility mode failed (Check that scp1 is in your PATH).
debug1: channel 0: obuf empty
debug1: channel 0: close_write
debug1: channel 0: output drain -> closed
debug1: channel 0: almost dead
debug1: channel 0: gc: notify user
debug1: channel 0: gc: user detached
debug1: channel 0: send close
debug1: channel 0: is dead
debug1: channel 0: garbage collecting
debug1: channel_free: channel 0: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
debug1: Transferred: stdin 0, stdout 0, stderr 0 bytes in 0.1 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
debug1: Exit status 255
lost connection
Is there a (easy) solution to this problem? Thanks in advance.
Secured Sockets Layer is a protocol that transmits your communications over the Internet in an encrypted form. SSL ensures that the information is sent, unchanged, only to the server you intended to send it to.
In addition, as far as I can recall, ssl is a dependency of ssh. Therefore you might need to reinstall your ssh, but make sure that you have already installed ssl.
(1st) Install SSL Package --- no configuration needed. Just use #./configure (hope you already know this)
(2nd) Reinstall SSH Package --- Review the readme files or TODO files...
There is a source download site for SSH latest version. openbsd.org
This is typically caused by connecting from a Linux server running OpenSSH to an Solaris or AIX or other UNIX server running SSH2. The error message means that scp1 is not in your PATH variable on the remote system. Probably it is not installed at all.
The only work around I know of save installing the scp1 binaries on your remote UNIX system is to use SFTP.
This reply is to the post concerning ssl. I tried to install the ssl rpm and it said that it was already installed. Would you suggest that I uninstall openssh and then reinstall first openssl and then openssh?
In response to the sftp post, I tried using sftp using the following commands with the following results
sftp akay@mse12
Connecting to mse12...
The authenticity of host 'mse12 (192.168.0.209)' can't be established.
RSA key fingerprint is 2e:f8:71:60:06:9d:2c:de:3b:42:f9:16:1d:16:b5:86
.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'mse12,192.168.0.209' (RSA) to the list of
known hosts.
akay@mse12's password:
sftp> pwd
Remote working directory: /home/akay
sftp> cd /usr/local/mathematica
sftp> ls
.
..
sftp> put *
Uploading MathKernel to /usr/local/mathematica/MathKernel
Couldn't get handle: Permission denied
Uploading Mathematica to /usr/local/mathematica/Mathematica
Couldn't get handle: Permission denied
Uploading math to /usr/local/mathematica/math
Couldn't get handle: Permission denied
Uploading mathematica to /usr/local/mathematica/mathematica
Couldn't get handle: Permission denied
Uploading mcc to /usr/local/mathematica/mcc
Couldn't get handle: Permission denied
Hi,
I changed the permissions for the directory, but sftp will not let me copy the entire directory. Is there a way to copy an entire directory (and all of the directories contained in that directory) instead of doing one file at a time?
I changed the permissions for the directory, but sftp will not let me copy the entire directory. Is there a way to copy an entire directory (and all of the directories contained in that directory) instead of doing one file at a time?
Yes, but not with regular SFTP that I know of.
Anyway, try this command on the server with the data you want to copy after "cding" into the directory you want to copy:
Code:
tar -cf - . | ssh username@server_to_copy "cd /usr/local/mathematica ; tar -xf -"
Hi,
Thanks for the reply. I tried that and got this result
[akay@mse23 mathematica]$ tar -cf . | ssh akay@mse12 "cd /usr/local/mathematica ; tar -xf -"
tar: Cowardly refusing to create an empty archive
Try `tar --help' for more information.
akay@mse12's password:
Hi,
Sorry about that. I tried your suggestion and got the follwing error
tar: ./SystemFiles/LicenseManager/Binaries/Linux: Cannot mkdir: No such file or directory
tar: ./SystemFiles/LicenseManager/Binaries/Linux/mathlm: Cannot open: No such file or directory
tar: ./SystemFiles/LicenseManager/Binaries/Linux/monitorlm: Cannot open: No such file or directory
tar: ./SystemFiles/FrontEnd: Cannot mkdir: No such file or directory
tar: ./SystemFiles/FrontEnd/StyleSheets: Cannot mkdir: No such file or directory
tar: ./SystemFiles/FrontEnd/StyleSheets/ArticleClassic.nb: Cannot open: No such file or directory
tar: ./SystemFiles/FrontEnd/StyleSheets/ArticleModern.nb: Cannot open: No such file or directory
tar: ./SystemFiles/FrontEnd/StyleSheets/Classic.nb: Cannot open: No such file or directory
tar: ./SystemFiles/FrontEnd/StyleSheets/Classroom.nb: Cannot open: No such file or directory
tar: ./SystemFiles/FrontEnd/StyleSheets/Default.nb: Cannot open: No such file or directory
tar: ./SystemFiles/FrontEnd/StyleSheets/Demo.nb: Cannot open: No such file or directory
tar: ./SystemFiles/FrontEnd/StyleSheets/HelpBrowser.nb: Cannot open: No such file or directory
tar: ./SystemFiles/FrontEnd/StyleSheets/HTML.nb: Cannot open: No such file or directory
tar: ./SystemFiles/FrontEnd/StyleSheets/NaturalColor.nb: Cannot open: No such file or directory
tar: ./SystemFiles/FrontEnd/StyleSheets/Notepad.nb: Cannot open: No such file or directory
tar: ./SystemFiles/FrontEnd/StyleSheets/NotepadMono.nb: Cannot open: No such file or directory
tar: ./SystemFiles/FrontEnd/StyleSheets/PastelColor.nb: Cannot open: No such file or directory
tar: ./SystemFiles/FrontEnd/StyleSheets/PrimaryColor.nb: Cannot open: No such file or directory
tar: ./SystemFiles/FrontEnd/StyleSheets/Report.nb: Cannot open: No such file or directory
tar: ./SystemFiles/FrontEnd/StyleSheets/Textbook.nb: Cannot open: No such file or directory
tar: ./SystemFiles/FrontEnd/StyleSheets/DemoText.nb: Cannot open: No such file or directory
The tar error could be cause by any number of things that you will have to look into including:
1. Not enough disk space on the partition for /usr/local/mathematica.
2. Not enough disk space in /tmp
3. Insufficient permissions on /usr/local/mathematica
Try touching some files to see if you have write permission, run "df" to see if there is free space available.
1)
I do not have /usr/lib/spawn /usr/lib/expect /usr/lib/send
I am looking for these files too.
2)
If you are in HP-UX, you probably get this error message and your <expect> will not work
/usr/lib/dld.sl: Can't find path for shared library: libtcl.sl
/usr/lib/dld.sl: No such file or directory
may anyone help.
I am not suppose to re-install the entire library but allow to copy and replace the corrupted files.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.