Author Topic: Sftp  (Read 6934 times)

Smuffle

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
Sftp
« on: January 09, 2006, 11:59:38 am »
If I could access my Z from my Mac through SFTP it would make life a lot easier when moving and copying files around.  I can do it the other way around but it's not ideal.  Anyone got it working?  

I have the Cacko ROM and it seems to have the functionility (could be wrong) but I'm darned if I can work out how.

Mjolinor

  • Full Member
  • ***
  • Posts: 227
    • View Profile
Sftp
« Reply #1 on: January 09, 2006, 12:47:29 pm »
Can you SSH to it. If you can then you should be able to SFTP to it as well. The SSH daemon on Cacko works fine out of the box so I suspect your not doing the other end right. You have to have set the root password I think, maybe that is your problem.

Smuffle

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
Sftp
« Reply #2 on: January 09, 2006, 01:33:03 pm »
Quote
Can you SSH to it. If you can then you should be able to SFTP to it as well. The SSH daemon on Cacko works fine out of the box so I suspect your not doing the other end right. You have to have set the root password I think, maybe that is your problem.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=110156\"][{POST_SNAPBACK}][/a][/div]

No, I can't SSH to it (I assume its ssh zaurus@ipaddress).  Is the SSH server loaded by default?  

As for the SU password, I was wondering why it never asked.. how do you set it?

bluedevils

  • Hero Member
  • *****
  • Posts: 1284
    • View Profile
    • http://
Sftp
« Reply #3 on: January 09, 2006, 02:07:14 pm »
Code: [Select]
ssh -l rootor
Code: [Select]
ssh -l zaurus
both passwords are the same as the numeric passcode that you might have set.  If you have a stock setup then the program would be under your settings tab.  I haven't tried to sftp to the zaurus so I cannot confirm its availability.  I usually use scp.

Code: [Select]
scp or more precisely to push a file to the zaurus from another machine
Code: [Select]
scp zaurus@:
I'm now an iphone user and use my zaurii as serial terminals, perl and shell scripting and when I need 640x480 screens

sl-c3100/pda cacko 1.23 | sl-6000l/needs battery | sl-c760/server pdaxrom rc12 | Former sl-5500/tkcrom owner (sister's birthday gift)

rickh

  • Full Member
  • ***
  • Posts: 143
    • View Profile
Sftp
« Reply #4 on: January 09, 2006, 04:09:14 pm »
Quote
No, I can't SSH to it (I assume its ssh zaurus@ipaddress).  Is the SSH server loaded by default? 

As for the SU password, I was wondering why it never asked.. how do you set it?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=110162\"][{POST_SNAPBACK}][/a][/div]
I've had my 3000 for awhile now, so I can't swear to it, but I don't believe ssh server/client/addons were installed by default.  I installed openssh (you can get it from several different places, www.killefiz.de/zaurus is one place) myself.

R.
==
* SL-5600/Sharp 1.0 ROM w/1GB Lexar CF card, 1GB IBM Microdrive, 1GB PNY SD card, several Hitachi and MagicStor CF hard drives.
* Nokia N800 Internet tablet, 2GB Nokia MicroSD card, two 4GB Transcend SD cards.
* Nokia SU-8W Bluetooth keyboard.

Mjolinor

  • Full Member
  • ***
  • Posts: 227
    • View Profile
Sftp
« Reply #5 on: January 09, 2006, 04:12:24 pm »
open the console, that will be user zaurus

su root will get you to a root console without a password
you can then set a password using passwd.

I assume it's the same for the zaurus password before you su root that is.

ssh doesn't seem to like working without a password

Smuffle

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
Sftp
« Reply #6 on: January 09, 2006, 10:39:51 pm »
Quote
Code: [Select]
ssh -l rootor
Code: [Select]
ssh -l zaurus
both passwords are the same as the numeric passcode that you might have set.  If you have a stock setup then the program would be under your settings tab.  I haven't tried to sftp to the zaurus so I cannot confirm its availability.  I usually use scp.

Code: [Select]
scp or more precisely to push a file to the zaurus from another machine
Code: [Select]
scp zaurus@:[div align=\"right\"][a href=\"index.php?act=findpost&pid=110169\"][{POST_SNAPBACK}][/a][/div]


I could use scp but, call me old fashioned, nice to have a GUI of my file systems.

I set the password OK but not really sure what to do after that.  My idea was that I type something like "sftp -startserver" and a background process starts up which would the let my desktop connect over port 22.  Doesn't seem to be the case though.

Mjolinor

  • Full Member
  • ***
  • Posts: 227
    • View Profile
Sftp
« Reply #7 on: January 10, 2006, 02:12:49 am »
SFTP uses the ssh server so if tou have a root console open and type "ps x" then it should be in the list if it is loaded. If it isn't loaded then find it with

find / -name sshd

then change to the directory it is in and type

./sshd

That will run the SSH daemon

Once running go to a PC on the network, open a root console and type

ssh "IP address"

If that works then you will be able to open an sftp session using nautilus or any sftp software.

Smuffle

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
Sftp
« Reply #8 on: January 10, 2006, 02:40:12 am »
Quote
SFTP uses the ssh server so if tou have a root console open and type "ps x" then it should be in the list if it is loaded. If it isn't loaded then find it with

find / -name sshd

then change to the directory it is in and type

./sshd

That will run the SSH daemon

Once running go to a PC on the network, open a root console and type

ssh "IP address"

If that works then you will be able to open an sftp session using nautilus or any sftp software.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=110211\"][{POST_SNAPBACK}][/a][/div]

found the directory and did as you said; here was the message:
"sshd re-exec requires execution with an absolute path"

?

Mjolinor

  • Full Member
  • ***
  • Posts: 227
    • View Profile
Sftp
« Reply #9 on: January 10, 2006, 04:50:16 am »
OK so find the directory then run it with the absolute path ie

/"the path here"/sshd

Just copy what the find command brings back and paste it on the command line.

Smuffle

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
Sftp
« Reply #10 on: January 10, 2006, 08:57:55 am »
Quote
OK so find the directory then run it with the absolute path ie

/"the path here"/sshd

Just copy what the find command brings back and paste it on the command line.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=110226\"][{POST_SNAPBACK}][/a][/div]

Executes without complaining now but not sure if it's actually running.. still doesn't want to be connected to from my desktop ("connection refused").

I can't see anything similar to "SSH" in the "ps x" list either.

Any ideas?

bluedevils

  • Hero Member
  • *****
  • Posts: 1284
    • View Profile
    • http://
Sftp
« Reply #11 on: January 10, 2006, 09:08:31 am »
most of the implementations of sshd on the zaurus (sharp based rom) use inetd to spawn sshd on demand.  Check your inetd.conf to see if it is entered there or do a netstat -a and see if it is listening on port 22 (ssh).
I'm now an iphone user and use my zaurii as serial terminals, perl and shell scripting and when I need 640x480 screens

sl-c3100/pda cacko 1.23 | sl-6000l/needs battery | sl-c760/server pdaxrom rc12 | Former sl-5500/tkcrom owner (sister's birthday gift)

Smuffle

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
Sftp
« Reply #12 on: January 10, 2006, 09:19:53 am »
Quote
most of the implementations of sshd on the zaurus (sharp based rom) use inetd to spawn sshd on demand.  Check your inetd.conf to see if it is entered there or do a netstat -a and see if it is listening on port 22 (ssh).
[div align=\"right\"][a href=\"index.php?act=findpost&pid=110267\"][{POST_SNAPBACK}][/a][/div]

Did netstat -a and it shows in the list at the top:

Active internet connections (servers and established)
blah blah
tcp  0  0 *:ssh    *:*

Now at the lonely border of my knowledge in this area..

bluedevils

  • Hero Member
  • *****
  • Posts: 1284
    • View Profile
    • http://
Sftp
« Reply #13 on: January 10, 2006, 09:54:00 am »
on the zaurus itself try
Code: [Select]
ssh 127.0.0.1 to confirm that ssh is accepting locally on the Z.  Have you implemented any firewalls on the Z or desktop?
I'm now an iphone user and use my zaurii as serial terminals, perl and shell scripting and when I need 640x480 screens

sl-c3100/pda cacko 1.23 | sl-6000l/needs battery | sl-c760/server pdaxrom rc12 | Former sl-5500/tkcrom owner (sister's birthday gift)

Smuffle

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
Sftp
« Reply #14 on: January 10, 2006, 10:04:02 am »
Quote
on the zaurus itself try
Code: [Select]
ssh 127.0.0.1 to confirm that ssh is accepting locally on the Z.  Have you implemented any firewalls on the Z or desktop?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=110275\"][{POST_SNAPBACK}][/a][/div]

Seems to connect locally without problem (when su) but won't connect from the desktop.  I've tried ssh ipadress and ssh zaurus@ipaddress

Firewalls? I haven't changed anything.. just standard Cacko ROM..