Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

scp problems

Posted on 2004-03-22
5
Medium Priority
?
810 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
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.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

610 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