Solved

scp problems

Posted on 2004-03-22
5
784 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
PAQed - no points refunded (of 125)

Netminder
EE Admin
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
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 find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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…

762 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

15 Experts available now in Live!

Get 1:1 Help Now