2

Here I am, poking around a remote server via SSH, and I want to find out about/read/edit/whatever a file. I don't like vi or other CMI stuff, I want to read it locally.

Is there any way I can download it without exiting my interactive SSH session? (Even better, would there be any way to run local commands without exiting it?)

2
  • You mean directly in the same terminal as the existing SSH session? Commented Jul 24, 2013 at 17:26
  • @IgnacioVazquez-Abrams: yes Commented Jul 24, 2013 at 18:01

1 Answer 1

1

You can use scp like scp file youruser@yourlocalmachine: .

Or you can use the -X parameter, will allow you to use window programas for example gedit.

1
  • I didn't know about the -X parameter. Also I didn't think of setting up a SSH server on my own box, that's an unexpectedly amusing idea. Commented Jul 24, 2013 at 18:02

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.