Solved

scp problems

Posted on 2004-03-22
5
793 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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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.

803 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