![]() |
ssh usage
hi,
I am lost, and beg you for help! on my n800, I have installed ssh (client), and on the desktop (windows 2000, cygwin), ssh server. The server works perfectly, and I was able to connect to it via another computer on my network. the question is: how to connect to my desktop via ssh? I have no wireless router (living off my neighbor's connection... don't tell them!:D), so the network I am on and the one i'm trying to connect to are different. How do I do this? thank you Ilia |
Re: ssh usage
You'll have to go over the internet, so your wired router will need to forward the ssh port to your desktop.
|
Re: ssh usage
request for aditional clarification:
1-WHICH port??? 2- from the n800, i enter $ssh -X login@??? I have a program that sends my IP to a server every 5 minutes, thus giving me a static address. do i enter $ssh -X login@my.external.ip.? ex: currently: 216.221.38.161 if that's it, then what port should I enter (after having opened it on my firewall)? |
Re: ssh usage
Default ssh port is 22.
|
Re: ssh usage
Quote:
This "other computer on your network" is wired to your W2000? It is a local network? Did you use an internal IP to connect? Quote:
You dont need to specify any port in the ssh client command line, as long as your ssh server uses the standar port (which is 22, as said). |
Re: ssh usage
thanks... although ace gave me the answer I needed.
All I was missing was the port number, so when trying to connect, it was closed. I have a small program that gives me a static ip (see www.no-ip.com). therefore, I always connect to user@staticIP.com the W2k is the machine i tried (and finally did!) connect to. It has cygwin to allow this. Ilia |
Re: ssh usage
although I have another question:
now that I have ssh connection working, is there any way to make two computers work together. I'll be more specific: I need to send a file from the host (w2k) to the client (n800). Can I use cp? if so, what would it be? $ cp /cygdrive/*/folder/file.ext /??? where do I copy it? thank you. |
Re: ssh usage
Quote:
You get the file using your n800. So, you'd use something like (from the n800 shell): scp user@my.external.ip:/path/to/file ./ Or you can use sftp.... desiv |
Re: ssh usage
Quote:
To be more specific, the following command (issued in an xterm session in the tablet) Code:
$ scp MyTabletFile foo@bar:folderThe command also works in the oppsite direction (but always issued from the tablet): Code:
$ scp foo@bar:folder/file.ext . |
Re: ssh usage
You can use sftp or scp.
From wikipedia: Copying file to host: Code:
scp SourceFile.ext user@host:directory/TargetFile.extCode:
scp user@host:folder/SourceFile.ext TargetFile.extHeh, beaten. |
Re: ssh usage
thanks a lot!
|
Re: ssh usage
Oh, that's just cold. ;(
Oh, the humanity!!! ;) desiv |
Re: ssh usage
???
explain yourself plz. |
Re: ssh usage
Quote:
I suggest you use scp and give you an example. And I suggest you use sftp as an alternative. Next post suggests scp, and you clicked that it was helpful. Next post suggests scp and sftp, and you clicked that it was helpful. They were very descriptive and helpful posts. I just thought it was funny. I have a weird sense of humor. Take it easy. desiv :) |
Re: ssh usage
there... happy now ;)
i needed the command along with the syntax. btw, in scp (what I now use), the correct syntax for user@ip:/localpath : the localpath is actually c:/* or D:/* or (in my case) R:/ (all the letters before r are already used except B - anyone has a 5-inch floppy reader? :D) it's not /cygdrive/r/* |
| All times are GMT. The time now is 14:40. |
vBulletin® Version 3.8.8