Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I use ssh mylogin@server to connect to a remote server... I am wondering how to copy the whole files from there to my local machine...

One reason to do this, is that, I could not compile a latex file on the server, there is an error: ! LaTeX Error: File tikz.sty not found. I guess this error will disappear if I compile the same file on my local machine.

Another reason is that it seems that there are not too many tools on the server, for example, I can not open a pdf by evince, which is doable on my local machine.

Could anyone help?

share|improve this question
add comment

3 Answers

up vote 5 down vote accepted

I agree eith Engels Peralta, this is the simplest way.

From Nautilus go to File -> Connect to Server...

Change type to SSH, then enter your SSH details and credentials.

Now it should show up in your file system pane on the left.

You can then browse, copy or whatever. Note that you do not need to have an ssh session active before connecting, this will initiate the SSH session. Be sure to create a bookmark so you can access from the bookmark menu. I use the same method to connect to a test webserver.

share|improve this answer
    
the more i use linux, the more i get amazed! - a windows user –  Nerrve Mar 7 '13 at 6:40
add comment

You can use nautilus for this just go to connect to server and then select ssh fill what is needed to connect then you can drag and drop to your local machine.

share|improve this answer
    
sftp is the underlying protocol. It is built into the ssh protocol, so if you can ssh in, you can also use sftp. –  jpaugh Dec 2 '11 at 19:03
add comment

You can access the remote files as if they were on your machine with SSHFS. Install the sshfs Install sshfs package. Make sure you are in the fuse group (see the SSHFS page on the Ubuntu wiki). Run

mkdir ~/server
sshfs mylogin@server: ~/server
cd ~/server/docs/stuff
pdflatex mypaper.tex
evince mypaper.pdf

The files under ~/server are those of the remote machine, and you can work with all your applications on the local machine.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.