Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Without login via SSH to remote host,
we can securely copy or transfer using scp command.
Consider this case:
After we login with SSH to remote host, what utility can we
use to securely copy from remote host to my laptop
(while still inside SSH)?
Addendum:
I am going to try scp while in SSH mode....
Answer:
Nope. it does not work because while already in remote host I cannot access my laptop. The laptop is not accessible from WWW since it has a local private IP.
You can't go backwards to the client machine unless it also has an SSH server running and is accessible. Better to open another terminal window in your GUI and do "sftp" or "scp" there, leaving the original remote session open.
If your client only has a single console and no options for any more, then you could suspend "ssh"
with ~^Z and with "ssh" in the background, run "scp" However, most GNU/Linux systems have multiple consoles you can get to with ctrl-alt-f1, ctrl-alt-f2, and so one up to f6. Or you can run "tmux" in your console.
But, again, if you have a graphical session running just open another terminal window.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.