Solved

scp problems

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

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

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

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

705 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