![]() |
Re: How do I run OpenSSH?
Can I access my /media/mmcs cards with just the regular user? And any additional help is much appreciated (I'm trying to read up on this and google it though it's a wee bit confusing).
Edit: And I have changed the root password, though I don't think I've changed the user password yet. (it has a password?) |
Re: How do I run OpenSSH?
Quote:
ssh-copy-id -i ~/.ssh/id_rsa.pub user@192.168.0.10 (assuming .10 is your tablet). As for the IP address, you NEED to use the IP address inside your network as I'm sure you don't have a DNS server that you admin locally or hosts file to resolve the name to hosts. If you want to add your tablet to a fixed IP in your router's DHCP and then associate a name to that IP address, that would work while you're at home. But if you're roaming around in the cloud and connecting from, say, Burger King, that won't work. You could do what I did, though. Set a fixed DHCP address for your laptop/server at home on your router... tell your router to route ALL traffic for a high and unusual port (let's say 2222) and route all traffic destined to port 2222 to your laptop/desktop's address at port 22. Then, set up a DynDNS.com domain name that will ALWAYS resolve to whatever your router reports to DynDNS as your current IP address with your ISP. Once you're roaming around on the Internet cloud, you can go to a terminal session and type, say in this example: ssh -p 2222 user@mydomain.dyndns.com This assumes you got the name 'mydomain' from dyndns.com. :) Let me know if I should flesh out any of that any further and I hope it helps you out. |
Re: How do I run OpenSSH?
Quote:
And yep.. the user has a password. Just 'passwd user' and that should do it. Don't lose the root password. If you lose the user's password, though.. no biggy. You can go back in as root from the terminal and just 'passwd user' to change it without already knowing the old one. Hence why you want to try NOT TO LOG IN AS ROOT as much as possible. If anyone manages to get root.. they are GOD of your tablet. :) heheh As for the mmc cards, you'll find them at: internal: /media/mmc2 removeable: /media/mmc1 So, for instance, you can issue: ls -la /media/mmc1 And you'll see the contents of the external card.. and you'll also notice that the files are all "owned" to the 'user' account. |
Re: How do I run OpenSSH?
Edit: Disabled root login for openssh.
Now to just get the keys setup. |
Re: How do I run OpenSSH?
Whoa.. you sure you want to actually DISABLE root login? Are you using any other method to be able to get root access?
|
Re: How do I run OpenSSH?
Quote:
Regenerating keys on the server isn't going to do anything useful, aside from generating 'hey, the key for this server changed' messages for any clients that connect to a server with new keys, and happen to have different server keys cached. |
Re: How do I run OpenSSH?
Quote:
changed allowrootlogin to no in its config file and reduce timeout to 60 Can still use root on the device. :) |
Re: How do I run OpenSSH?
Why not just use Bluetooth file transfer to move files back and forth?
I also use https:// Gmail, or an SD card//USB gadget. All three seem like secure, easy ways to do Mac-N800 transfers |
Re: How do I run OpenSSH?
Quote:
|
Re: How do I run OpenSSH?
Quote:
By the by, Bluetooth is a whole lot less secure if someone nefarious is within range. Using https and gmail is too awkward and out-of-the-way. USB only makes sense if you're connecting to a PC to access the SD cards--which may or may not serve your purpose. If you're trying to simply read/write the media cards, this is fine. If you're trying to script some cross-server automation or some file transfers to the /home/user path, this will be insufficient. Using the SD card is, again, only appropriate if the whole point is to simply move files over to the SD card. Then there's the whole argument of wear and tear on the kickstand and the SD card's door. I personally prefer to use ssh and scp to access and to transfer files. On rare occasion I will use bluetooth. I prefer not to use wires as much as possible and see very little reason to put any more wear and tear on my device by doing so. |
All times are GMT. The time now is 12:07. |
vBulletin® Version 3.8.8