Page 1 of 1

SSH Command help

Posted: Thu Aug 25, 2011 4:49 am
by pottsiex5
Hi,
I am new to the ssh command. I am not having any problems connecting to the other computer, i just dont know how to do things like copy files to it or open a libreoffice file on or something. Any help or tutorials?
Joel

Re: SSH Command help

Posted: Fri Aug 26, 2011 2:04 am
by Pilosopong Tasyo
...copy files...
If you're going to copy files between local host and remote host OR between two remote hosts, use the scp command instead.
...open a libreoffice file...
At least two ways to do it:

1. Use samba to share a folder on the remote host, then use your file browser (nautilus) to connect to the remote host and open the file from there. You will be using local resources but editing the file remotely.

2. Add the -X parameter when you ssh the remote machine. As an example for gedit:

Code: Select all

ssh -X username@remotehost.local
...
gedit /path/to/filename
OR, invoke it on a single line:

Code: Select all

ssh -X username@remotehost.local gedit /path/to/filename
You will be using resources on the remote host, so expect some screen lag.