Transfer file in Secure Shell - shell

I use Secure Shell as a Chrome extension (https://chrome.google.com/webstore/detail/secure-shell/pnhechapfaindjhompbnflcldabbghjo?hl=da)
Now I have finished some programming and I need the file on my computer.
How can I transfer the file to my computer? Can I send it by email or something?
I have tried yanking all the lines in vim, but I still don't get it copied to my windows clipboard.

One entertaining (and moderately ridiculous) approach would be sprunge.
Run this on the remote machine:
cat myFile | curl -F 'sprunge=<-' http://sprunge.us
And then visit the URL it prints on your local machine. :D

I presume that you are using Windows OS and trying to download your file from a Linux like OS.
You use MobaXterm and it comes with a file transfer features.
http://mobaxterm.mobatek.net
On a CLI you can use "scp" to download and upload.
Another one is you can also use FileZilla using SFTP protocol

Related

How to resume failed/interrupted downloads with SFTP?

I am using GitBash and I am downloading a file greater than 10GB and it stopped halfway. I don't want to download the whole file again from start. How can I start the download from where it was stopped with SFTP?
I have tried reget command it showed cannot download non-regular file.
(Assuming, you are using OpenSSH sftp), use its reget command. It has the same syntax as the get, except that it starts a transfer from the end of an existing local file.
The same effect has -a switch to the get command or global command-line -a switch of sftp.
You need OpenSSH 6.3 and later for these features

503 RNFR command not understood

I'm using a (cheap branded) local media station as an FTP server and I'm using FIleZilla to transfer files to it.
When I try to move or rename a file located on the media station, I'm getting
Command: RNFR [filename]
Response: 503 Command not understood.
I don't know whether this is because of an old or corrupted FTP version (it's a device older than 5 years and I think there are no updates available).
Is there an alternative to perform FTP rename or move commands?
Is there an alternative to perform FTP rename or move commands?
If you have telnet or SSH access to the machine you could do the renaming their. If not you might try to use the FTP SITE command with "mv from-name to-name". But I doubt that the server will support this if it does not even support the standard way of FTP to rename files.
Apart from that the only alternative is probably to download the file, remove it on the server and upload it again with a different name.

Copy files from authenticated windows server to Unix server

I have a set of zip files that need to be copied from an authenticated windows server to a unix server which is authenticated too.
I have tried using Pentaho but have not found any success. Is there any other alternative way with which this copy can be done like using scripts or any such method?
Thanks in advance.
Assuming your server supports ssh..
Putty comes with a utility called pscp which works the same as scp.
To copy a file you would typically do this:
pscp myfile.zip me#myserver:/my_directory/.
There is also winscp if you want something more GUI.
Use scp command. For more detail visit http://www.garron.me/en/linux/scp-linux-mac-command-windows-copy-files-over-ssh.html

Windows batch command ftp

is there anyone who can tell me how to make a batch which connects to at ftp server and downloads the latest file from the server.
I only need the newest file, not the old ones.
You could use something like wget for Windows, which can be configured to download only newer files than those you currently have, like this:
wget -N ftp://username%3Apassword#FTPServerAddress/dir/*
check this.It requires powershell (all windows 7 machines have it by default).It's juest easier to compare dates with it.

How to wget a html file from a an administrative share on a Windows webserver

Is there anyway I am able to use wget in Unix to transfer a html file from a Windows administrative share?
The file path I am trying to access is like the example:
www.webserv.com/share$/reportfolder/index.html
This is a very obtuse way of creating a monitoring script on a OS without the use of curl / Nagios / extra perl modules.
Any help given will be greatly appreciated.
Wget works only with http, https, and ftp protocols (man page)
if you need to access Windows files from Unix, you have several choices
FTP
You might look at Samba (http://www.samba.org)
You can use SSH

Resources