niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » SGI/IRIX » admin
scp and sftp dont work
Post new topic   Reply to topic Page 1 of 1 [6 Posts] View previous topic :: View next topic
Author Message
Walter Roberson
*nix forums Guru


Joined: 19 Feb 2005
Posts: 1300

PostPosted: Fri Jan 20, 2006 5:46 am    Post subject: Re: scp and sftp dont work Reply with quote

In article <dqj5a3$165n$1@vishnu.jussieu.fr>,
Master ZU <"Master.h2zu"@gmail.com> wrote:
Quote:
Subsystem sftp /usr/freeware/libexec/sftp-server

The Subsystem line is correct for scp use.

How do you see that ? I only see sftp subsystem !!

I checked the source, and I was wrong about the above. I
was being misled by my memory of some security logs before.

When you use scp, the remote sshd calls upon scp on the remote
end. Make sure you have scp on the path that is active for your
remote daemon.

Your scp binary is likely somewhere in /usr/freeware
and chances are that the appropriate /usr/freeware directory
is not normally in the path of whatever means you use to
start the daemon. In particular, if you are running the sshd
out of inetd then you need to be aware that inetd scrubs its
path so even if somehow you had managed to get the freeware
directory into the path at the time inetd itself starts, inetd
substitutes a hardcoded path for security reasons.
Back to top
Master ZU
*nix forums beginner


Joined: 06 Jan 2006
Posts: 13

PostPosted: Tue Jan 17, 2006 4:17 pm    Post subject: Re: scp and sftp dont work Reply with quote

Walter Roberson a dit le 16.01.2006 18:18:
Quote:

My sshd config on SGI

--code--
Protocol 2,1
HostKey /usr/freeware/etc/ssh_host_key
HostKey /usr/freeware/etc/ssh_host_dsa_key
StrictModes yes
PermitRootLogin yes
UsePAM no
IgnoreRhosts yes

I notice you are ignoring rhosts: are the clients set up to authenticate
with keys instead of passwords?

yes, the ssh command works well with keys and with login/password if
keys are not in authorized_keys

Quote:


/etc/ssh/ssh_known_hosts
RhostsRSAAuthentication no
X11Forwarding yes
UsePrivilegeSeparation no
Subsystem sftp /usr/freeware/libexec/sftp-server

The Subsystem line is correct for scp use.

How do you see that ? I only see sftp subsystem !!

Quote:
On my machine,
sftp-server is about 46 Kb; you might want to cross-check that the
file exists and is about that size and is executable by the sshd process.

seems ok:

--code--
# ls -l /usr/freeware/libexec/sftp-server
-rwxr-xr-x 1 root sys 46524 Jan 16 16:01 sftp-server*
--/code--

I dont know that to do Sad
Back to top
Walter Roberson
*nix forums Guru


Joined: 19 Feb 2005
Posts: 1300

PostPosted: Mon Jan 16, 2006 5:18 pm    Post subject: Re: scp and sftp dont work Reply with quote

In article <dqgc46$hnm$1@vishnu.jussieu.fr>,
Master ZU <"Master.h2zu"@gmail.com> wrote:
Quote:
Master ZU <"Master.h2zu"@gmail.com> wrote:
I explain:
when i use clients ssh, scp or sftp from SGI, i can connect to any
machines SGI, Linux or AIX...
but with clients from thoses machines, i can't use scp or sftp to copy
stuffs from SGI station. Only ssh seem to work well !

My sshd config on SGI

--code--
Protocol 2,1
HostKey /usr/freeware/etc/ssh_host_key
HostKey /usr/freeware/etc/ssh_host_dsa_key
StrictModes yes
PermitRootLogin yes
UsePAM no
IgnoreRhosts yes

I notice you are ignoring rhosts: are the clients set up to authenticate
with keys instead of passwords?


Quote:
/etc/ssh/ssh_known_hosts
RhostsRSAAuthentication no
X11Forwarding yes
UsePrivilegeSeparation no
Subsystem sftp /usr/freeware/libexec/sftp-server

The Subsystem line is correct for scp use. On my machine,
sftp-server is about 46 Kb; you might want to cross-check that the
file exists and is about that size and is executable by the sshd process.
Back to top
Master ZU
*nix forums beginner


Joined: 06 Jan 2006
Posts: 13

PostPosted: Mon Jan 16, 2006 2:55 pm    Post subject: Re: scp and sftp dont work Reply with quote

Walter Roberson a dit le 11.01.2006 22:02:
Quote:
In article <dq2h28$7ha$1@vishnu.jussieu.fr>,
Master ZU <"Master.h2zu"@gmail.com> wrote:
I have problems with ssh packages.

In all version of openssh that I have installed (fw_openssh and openssh
6.5.22), the servers parts don't work well.

I explain:
when i use clients ssh, scp or sftp from SGI, i can connect to any
machines SGI, Linux or AIX...
but with clients from thoses machines, i can't use scp or sftp to copy
stuffs from SGI station. Only ssh seem to work well !

Anyone have some experiences of thats strange thing ?

The time I had that happen to me, it was because scp hadn't been
enabled in sshd_config .

If that doesn't turn out to be the issue for you, we will need more
details about the behaviour you see and the messages you get in
/var/adm/SYSLOG and kin.

My sshd config on SGI


--code--
Protocol 2,1
HostKey /usr/freeware/etc/ssh_host_key
HostKey /usr/freeware/etc/ssh_host_dsa_key
StrictModes yes
PermitRootLogin yes
UsePAM no
IgnoreRhosts yes
/etc/ssh/ssh_known_hosts
RhostsRSAAuthentication no
X11Forwarding yes
UsePrivilegeSeparation no
Subsystem sftp /usr/freeware/libexec/sftp-server
--/code--

nothing about scp ???
Back to top
Walter Roberson
*nix forums Guru


Joined: 19 Feb 2005
Posts: 1300

PostPosted: Wed Jan 11, 2006 9:02 pm    Post subject: Re: scp and sftp dont work Reply with quote

In article <dq2h28$7ha$1@vishnu.jussieu.fr>,
Master ZU <"Master.h2zu"@gmail.com> wrote:
Quote:
I have problems with ssh packages.

In all version of openssh that I have installed (fw_openssh and openssh
6.5.22), the servers parts don't work well.

I explain:
when i use clients ssh, scp or sftp from SGI, i can connect to any
machines SGI, Linux or AIX...
but with clients from thoses machines, i can't use scp or sftp to copy
stuffs from SGI station. Only ssh seem to work well !

Anyone have some experiences of thats strange thing ?

The time I had that happen to me, it was because scp hadn't been
enabled in sshd_config .

If that doesn't turn out to be the issue for you, we will need more
details about the behaviour you see and the messages you get in
/var/adm/SYSLOG and kin.
Back to top
Master ZU
*nix forums beginner


Joined: 06 Jan 2006
Posts: 13

PostPosted: Wed Jan 11, 2006 8:53 am    Post subject: scp and sftp dont work Reply with quote

Hello

I have problems with ssh packages.

In all version of openssh that I have installed (fw_openssh and openssh 6.5.22), the servers parts don't work well.

I explain:
when i use clients ssh, scp or sftp from SGI, i can connect to any machines SGI, Linux or AIX...
but with clients from thoses machines, i can't use scp or sftp to copy stuffs from SGI station. Only ssh seem to work well !

Anyone have some experiences of thats strange thing ?
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [6 Posts] View previous topic :: View next topic
The time now is Sat Nov 22, 2008 12:24 pm | All times are GMT
navigation Forum index » *nix » SGI/IRIX » admin
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Need help getting Sony DAT tape drive to work on Irix 6.5 trebor SGI/IRIX 1 Sun Apr 13, 2008 3:19 am
No new posts jinitiator - how do versions work ? Grumps Oracle 0 Fri Jul 21, 2006 9:05 am
No new posts Work-needing packages report for Jul 21, 2006 wnpp@debian.org devel 0 Fri Jul 21, 2006 6:50 am
No new posts Can anybody help me get a job or work robic0@nirgendwo Perl 5 Fri Jul 21, 2006 5:42 am
No new posts New to threads. How do they work? gel python 4 Thu Jul 20, 2006 2:08 am

Web Advertising | Car Accident Attorney Los Angeles | McDonalds | Mortgage Calculator | Gas Suppliers
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1568s ][ Queries: 20 (0.0666s) ][ GZIP on - Debug on ]