I’m new to unix. I need to copy file over ssh. This is what I do
me@localhost ~ $ ssh you@remotehost
Then I established ssh so I get
you@remotehost ~ $
I’d like to use scp to copy files from localhost to remotehost. Once I have ssh connection, how do I change to prompt back to me@localhost so that I can use the scp command? Is there a command for that?
Edit: The reason I need the ssh is because after I copied the file I have to execute it. Is there a way to remain in the ssh session and use scp to copy the file that I’m editing at localhost
Most shells exit with
exit. CtrlD may also work.