scp and gv in terminal

Joined
Sep 12, 2010
Messages
2
Reaction score
0
Points
1
Hello,

I am not sure how to use scp command to copy a file from a remotely connected server to my desktop. I am using ssh to connect into school, and I can't seem to get the command to work.

scp file.txt name@ipaddress:.


I am not sure why gv is not working on my computer. gv is part of the school system, so I assume when I connect to school via ssh. gv should work. It works on my partner's computer(window), but it doesn't on mine. I get an error that it cannot open the display. Any idea?


Thanks!


CK
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
Take a look here for some instructions on using scp.

I assume you're talking about gv as in GhostView. If so, you may need to enable X forwarding when ssh'ing into the machine. To do that, simply include the -X switch when ssh'ing into the machine. For example:
Code:
ssh -X <exampleserver>
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top