I used ssh -X <ip_addresss_of_remote_host> to connect to a remote host from my local computer. I am using ubuntu 12.04. Now that I can browse internet on the remote host by opening firefox using "firefox" command in the terminal. Now any file I download from the internet goes to the remote host. Is there anyway I can setup the connection such that a file downloaded comes directly to my local computer??
I'm assuming you're using a browser on a remote host for some good reason. Therefore, the get those files to your local computer, put the downloaded files somewhere in your user path, then FTP to the remote host and download the files to your local machine.
One possibility would be to set the download directory in your remote firefox session to a shared directory that you have access to on your local machine as well.
However, if I were you, I'd just copy the downloaded files to your local machine using rsync:
rsync -az <remote_host>:/path/to/firefox/download/dir ./dir
You could use sshfs to mount your local directory on the remote server. That way, even though the file would be downloaded on the remote server, it would actually be stored on your local computer.
Related
I have an Ubuntu Server. I have an external drive connected through USB. I use external drive with jellyfin for my movies. It works fine, but when I reboot server. The drive is no longer mounted, and I have to connect my monitor to the server and mount it. Is there a way to mount it remotely through SSH? I already tried to auto mount it in a script, which I don't remember, but that seems to not work (it did for a while).
I have a process that creates an EXCEL file on a local folder on my local PC.
I want to share this folder \ file with my EC2 instance on AWS.
FXs it's not an option because the costs are very high, file size is smaller than a 100MB.
any idea?
The answer is secure copy AKA: SCP.
SCP uses SSH (hence the name secure copy bit) because you are using a windows machine you'll need to make some changes to your machine first.
You should either look into WSL(windows subsystem for linux) or use native PowerShell, specifically this pkg
I've used ssh to connect to a remote filesystem from my local machine. I have a project saved on my local system that I want to test on the remote system. I want to transfer the project from my local system to the remote system I've SSHed into.
Does anyone know how to do that?
Use scp:
scp -r /local/directory/ username#remote_host:/remote/directory/
I need upload about 600 kiB C file and make file directory (local computer) to IBM Cloud Virtual Server and compile C files there. After program finish work, download result file, file size 5 MiB to 25 MiB back to local computer. Want use Mac OS X or Linux command line Terminal for upload and download.
Already have IBM Command Line Tool installed and know how select start/pause/stop virtual servers use web console with SSH key file. Can SSH to virtual servers.
Only use virtual server for extra computer power. No need Object Storage Bucket, no need web application, no deploy web application, Docker, no need fancy stuff in IBM Cloud documents, etc.
You can just use scp to copy your files to the VSI using it's credentials. It's no different than copying a file over to a remote server.
https://linux.die.net/man/1/scp
or use an sftp client like filezilla or cyberduck
Is there some way to call on a local program while using an ssh connection to a remote host? I'd like to have access to the environment on both sessions, so opening another terminal isn't ideal.
Edit: specifically the uses would center around scp or local programs that use it (i.e. the emacs extension tramp). The two things I had in mind:
to be able to type download x.png on a remote machine and have the file pulled to my computer.
something like emacs-local file.py that would open emacs on my local computer and use tramp to edit file.py.