|
|
|
|
|
|
| Author |
Message |
Master ZU *nix forums beginner
Joined: 06 Jan 2006
Posts: 13
|
Posted: Wed Jan 11, 2006 8:53 am Post subject:
scp and sftp dont work
|
|
|
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 |
|
 |
Walter Roberson *nix forums Guru
Joined: 19 Feb 2005
Posts: 1300
|
Posted: Wed Jan 11, 2006 9:02 pm Post subject:
Re: scp and sftp dont work
|
|
|
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
|
Posted: Mon Jan 16, 2006 2:55 pm Post subject:
Re: scp and sftp dont work
|
|
|
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
|
Posted: Mon Jan 16, 2006 5:18 pm Post subject:
Re: scp and sftp dont work
|
|
|
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
|
Posted: Tue Jan 17, 2006 4:17 pm Post subject:
Re: scp and sftp dont work
|
|
|
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  |
|
| Back to top |
|
 |
Walter Roberson *nix forums Guru
Joined: 19 Feb 2005
Posts: 1300
|
Posted: Fri Jan 20, 2006 5:46 am Post subject:
Re: scp and sftp dont work
|
|
|
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 |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Wed Dec 03, 2008 1:46 am | All times are GMT
|
|
Ringtones | Free Ringtones | Credit Cards | Credit Check | Buy Anything On eBay
|
|
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
|
|