Notices


Reply
Thread Tools
Posts: 9 | Thanked: 0 times | Joined on Aug 2008 @ Portland, OR
#1
I am trying to exchange files between my Mac and N810. Picking through these forums has suggested that OpenSSH is the way to do this. I installed the server and client, now what?

I seem unable to find a pertinent wiki of any kind. How does one use openSSH?
 
danramos's Avatar
Posts: 4,672 | Thanked: 5,455 times | Joined on Jul 2008 @ Springfield, MA, USA
#2
On the tablet side, you can use scp to copy files from the terminal. (cp = copies files on the same machine, scp = securely copy files to remote systems)

For example:
Assuming you're trying to copy a file named 'filename.txt' in the current directory to your Macintosh (which should alread have an ssh server running and waiting) where my username is 'username'. Assuming also that the Mac's IP address is 192.168.0.10 and I want to drop it into my /home/username/ (home directory):

scp filename.txt username@192.168.0.10:/home/username/
 

The Following 2 Users Say Thank You to danramos For This Useful Post:
Posts: 9 | Thanked: 0 times | Joined on Aug 2008 @ Portland, OR
#3
ok that's helpful. Another thread I came across had suggested MacFusion as a gui solution, but that requires the NIT to be the server, how do I set up my N810 as the server?
 
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#4
It likely already is if you installed it.

as root:

/etc/init.d/ssh restart

will make sure the server daemon is started... You just need to give your root user a password and from your mac ssh to your tablet as user root, password <password>.

Dont know anything about MacFusion.. but same logic applies.
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!
 
Posts: 566 | Thanked: 150 times | Joined on Dec 2007
#5
Once you have Openssh installed and running on the tablet you can use a ftp program from the Mac that supports the sftp protocol. That way you can just copy files by dragging them. I'm not a mac user but at least a cross platform ftp client like FileZilla should work. Or the other way around, if you have a ssh server running on the mac you can use the cp/scp commands for a single file or start an sftp session manually from the tablet and browse through your folders like this:

sftp macusername@ipadress
cd /some/folder
ls
get somefilename

Be aware that if you sftp into the root account of the tablet files copied to it are owned by root. So do a "chown user somefilename" on the tablet afterwards to change ownership to 'user'.

Last edited by iamthewalrus; 2008-08-19 at 21:11.
 
danramos's Avatar
Posts: 4,672 | Thanked: 5,455 times | Joined on Jul 2008 @ Springfield, MA, USA
#6
Originally Posted by KeepItFunky View Post
ok that's helpful. Another thread I came across had suggested MacFusion as a gui solution, but that requires the NIT to be the server, how do I set up my N810 as the server?
Install the openssh-server package. It will prompt you to set up a root password (and make you enter it twice to be sure it was entered accurately). Once it's installed, it'll already be running. NOTE: PLEASE BE SURE TO ENTER IN A STRONG PASSWORD FOR THE ROOT ACCOUNT. Don't use dictionary words and be sure to sprinkle in a number or two. This is ROOT, after all.

You can immediately to go your Macintosh and ssh to your tablet's IP address as the 'root' user but I highly recommend against it.

The first thing I would do, if I were you, is go to the tablet's terminal once again and ssh back into itself as root to change the 'user' password so that you can use that account to place files onto your tablet. Here's how:

ssh root@localhost

When asked for the root password, enter in the root password you had entered when you installed OpenSSH earlier. At the prompt, enter:

passwd user

Give the 'user' account a good password as well and voila! Now you can go back over to your Mac and ftp to your tablet with the 'user' as the username and the password you had assigned to it.
 

The Following User Says Thank You to danramos For This Useful Post:
GeneralAntilles's Avatar
Posts: 5,478 | Thanked: 5,222 times | Joined on Jan 2006 @ St. Petersburg, FL
#7
Transmit sftp.
 

The Following User Says Thank You to GeneralAntilles For This Useful Post:
Posts: 566 | Thanked: 150 times | Joined on Dec 2007
#8
B.t.w. the server daemon on the tablet seems a bit quirky. Sometimes I have to restart it with "invoke-rc.d ssh restart" to be able log into the tablet.
 
danramos's Avatar
Posts: 4,672 | Thanked: 5,455 times | Joined on Jul 2008 @ Springfield, MA, USA
#9
Originally Posted by iamthewalrus View Post
B.t.w. the server daemon on the tablet seems a bit quirky. Sometimes I have to restart it with "invoke-rc.d ssh restart" to be able log into the tablet.
Boggle. I've never had that problem. The only quirk I've ever noticed is that the networking needs to be enabled by doing SOMETHING with the tablet just before you try to reach it. (For example, I usually just refresh the omweather data and voila--power saving is off and the networking is reenabled). Otherwise, no problems here. N800 running diablo with an all Linux bunch of computers at home.
 
Posts: 566 | Thanked: 150 times | Joined on Dec 2007
#10
Originally Posted by danramos View Post
Boggle. I've never had that problem. The only quirk I've ever noticed is that the networking needs to be enabled by doing SOMETHING with the tablet just before you try to reach it. (For example, I usually just refresh the omweather data and voila--power saving is off and the networking is reenabled). Otherwise, no problems here. N800 running diablo with an all Linux bunch of computers at home.
Maybe by restarting the daemon I turn of wireless powersaving. I never really checked if the daemon is actually running.
 
Reply


 
Forum Jump


All times are GMT. The time now is 00:08.