LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-10-2004, 06:58 PM   #1
akay
LQ Newbie
 
Registered: Nov 2004
Posts: 20

Rep: Reputation: 0
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.

Ari Kay
 
Old 11-10-2004, 07:48 PM   #2
januariustm
LQ Newbie
 
Registered: Nov 2004
Location: Quezon City
Posts: 3

Rep: Reputation: 0
ssh

have you already populated or installed ssl... you should also install ssl.. reinstall the two ssh and ssl packages...
 
Old 11-11-2004, 02:18 PM   #3
akay
LQ Newbie
 
Registered: Nov 2004
Posts: 20

Original Poster
Rep: Reputation: 0
I have not installed the ssl package. What does the ssl package do? Do I need to uninstall the openssh and the reinstall both the openssl and openssh?
 
Old 11-12-2004, 07:45 AM   #4
januariustm
LQ Newbie
 
Registered: Nov 2004
Location: Quezon City
Posts: 3

Rep: Reputation: 0
SSL

Ssl means ---

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

Hope these concerns can help you.
 
Old 11-12-2004, 08:22 AM   #5
dcostakos
Member
 
Registered: Aug 2004
Posts: 44

Rep: Reputation: 15
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.
 
Old 11-12-2004, 05:03 PM   #6
akay
LQ Newbie
 
Registered: Nov 2004
Posts: 20

Original Poster
Rep: Reputation: 0
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
 
Old 11-12-2004, 05:44 PM   #7
dcostakos
Member
 
Registered: Aug 2004
Posts: 44

Rep: Reputation: 15
The SFTP errors look like standard file permission errors to me.

Check file permissons on the /usr/local/mathematica directory.
 
Old 11-15-2004, 12:36 PM   #8
akay
LQ Newbie
 
Registered: Nov 2004
Posts: 20

Original Poster
Rep: Reputation: 0
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?
 
Old 11-15-2004, 01:50 PM   #9
akay
LQ Newbie
 
Registered: Nov 2004
Posts: 20

Original Poster
Rep: Reputation: 0
This post is in response to januariustm. ssl was already installed on my computer. Do you have any other suggestions?
 
Old 11-15-2004, 02:37 PM   #10
dcostakos
Member
 
Registered: Aug 2004
Posts: 44

Rep: Reputation: 15
Quote:
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 -"
 
Old 11-15-2004, 03:02 PM   #11
akay
LQ Newbie
 
Registered: Nov 2004
Posts: 20

Original Poster
Rep: Reputation: 0
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:
 
Old 11-15-2004, 03:42 PM   #12
dcostakos
Member
 
Registered: Aug 2004
Posts: 44

Rep: Reputation: 15
Quote:
tar -cf . | ssh akay@mse12 "cd /usr/local/mathematica ; tar -xf -"
should read:

Code:
tar -cf - . | ssh akay@mse12 "cd /usr/local/mathematica ; tar -xf -"
Note the "-"
 
Old 11-15-2004, 05:07 PM   #13
akay
LQ Newbie
 
Registered: Nov 2004
Posts: 20

Original Poster
Rep: Reputation: 0
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
 
Old 11-16-2004, 10:13 AM   #14
dcostakos
Member
 
Registered: Aug 2004
Posts: 44

Rep: Reputation: 15
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.
 
Old 06-02-2008, 01:56 AM   #15
learner2008
LQ Newbie
 
Registered: Jun 2008
Posts: 1

Rep: Reputation: 0
spawn - expect - send

Hi Sir,

in my below command, it cannot work because of 2 problem

spawn ssh <xserver> <a command>
expect "password:"
send "$password\r"
expect eof

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.

Please help me. thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
scp error message basher400 Linux - Newbie 6 07-26-2007 03:48 AM
scp does not work with cron jobs yogendrarawat Linux - Newbie 2 09-15-2005 02:34 AM
scp error. bruse Linux - Newbie 9 09-02-2005 03:44 PM
Scp Error chaitu_iiit Linux - Software 1 12-08-2004 09:08 AM
scp still ask for root 's password when executing... Laplace Linux - General 1 03-02-2003 07:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration