Solved

scp problems

Posted on 2004-03-22
5
788 Views
Last Modified: 2013-12-27
i am trying to set up scp transfer between 2 boxes 1 is running solaris 2.7 and is a standalone workstation the other is running solaris 2.6 and is part of a cluster

i can scp files between the workstation and the cluster box no problem but from the cluster to the workstation i get the following

root@robin's password:
sftp> ld.so.1: sftp-server: fatal: libncurses.so.5: open failed: No such file or directory
                                                                                          Killed
                                                                                                Warning: child process (ssh2) exited with code 0.

running it in debug i get .........

root@robin's password:
debug: Ssh2Common/sshcommon.c:311/ssh_common_special: Received SSH_CROSS_AUTHENTICATED packet from connection protocol.
debug: Ssh2Common/sshcommon.c:751/ssh_common_new_channel: num_channels now 1
sftp> debug: SshTtyFlags/sshttyflags.c:294/ssh_internal_encode_tty_flags: Not a tty. (fd = 0)
ld.so.1: sftp-server: fatal: libncurses.so.5: open failed: No such file or directory
                                                                                    debug: Ssh2ChannelSession/sshchsession.c:1380/ssh_channel_session_request_exit_status: received exit status : 0
debug: Ssh2Common/sshcommon.c:725/ssh_common_destroy_channel: num_channels now 0
debug: Got session close with exit_status=0
debug: destroying client struct...
debug: uninitializing event loop
ssh_sigchld_real_callback
ssh_sigchld_process_pid: calling handler pid 26914 code 0
Warning: child process (ssh2) exited with code 0.


i have checked the right libs with the right permissions are present and the paths are correct

any ideas

 
0
Comment
Question by:fletcher2215
5 Comments
 
LVL 7

Expert Comment

by:fim32
ID: 10650557
hmm, probably the ncurses library you used when building ssh on the 2.7 machine is not in the normal places? (or the machine you built ssh on for the 2.7 machine had ncurses, and the cluster system does not).

look in /usr/lib/libncurses* and /usr/local/lib/libncurses*

if it happens to be in /usr/local/lib, then you'll need to add that path to your $LD_LIBRARY_PATH before running (or link in symbolically to /usr/lib, which may be easier)
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 10653005
do you need sftp support?
if not remove the Subsystem sftp line in sshd_config, and restart sshd
0
 
LVL 48

Expert Comment

by:Tintin
ID: 10653634
What version of SSH are you running and how did you install it?

Also, the title of your question is about "scp problems" when if fact you are demonstrating a sftp problem.  These use different mechanisms for the file transfer.  If ssh works fine, then scp should also work fine.
0
 
LVL 5

Accepted Solution

by:
Netminder earned 0 total points
ID: 11338637
PAQed - no points refunded (of 125)

Netminder
EE Admin
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now