Question:
how to copy files from a remote computer using Telnet ?
anonymous
1970-01-01 00:00:00 UTC
how to copy files from a remote computer using Telnet ?
Five answers:
JoelKatz
2010-03-02 13:11:51 UTC
There are two basic ways:



1) Set up your machine so that the other machine can transfer files to it, telnet to the remote machine, and command it to send the files to your machine. This is pretty tricky and would require you to run some kind of server (ideally 'sftp') on your machine. You may also have to set up port forwarding.



2) If you have access to 'scp' after you telnet into the remote machine, then you can use 'scp' to transfer the files from that machine to another remote machine. Use a remote machine that you have both 'ssh' and 'ftp' access to, and then use 'ftp' to get the files from that remote machine.



But I bet you also have 'ssh' access to that remote computer. If you have 'ssh' access, you also have 'scp' access. You should be able to use WinSCP or PuTTY to transfer the files directly to your computer. (Or you can just try it. Odds are, it will just work.)



Ask the administrator of that remote computer if you have 'ssh' access. Most likely, you do. (These days, 'telnet' access without 'ssh' access is very rare, as 'ssh' is the secure replacement for 'telnet'.)



I recommend PuTTY. My third link is a direct link to the installer.
sailor
2016-10-14 05:46:38 UTC
Telnet File Transfer
kails
2010-03-02 13:13:34 UTC
I would say easy way is to download WinSCP , it is generally used when you have linux and windows machines , and you dont want to use command line to copy , paste files.



Or from telnet , you can use Xcopy command , you can copy a entire drive if you want.

Here is the syntax with various options which you can find from help as well in msdos.



XCOPY source [destination] [/A | /M] [/D[:date]] [/P] [/S [/E]] [/V] [/W] [/C] [/I] [/Q] [/F] [/L] [/H] [/R] [/T] [/U]

[/K] [/N] [/O] [/X] [/Y] [/-Y] [/Z] [/EXCLUDE:file1[+file2][+file3]...]

source Specifies the file(s) to copy.

destination Specifies the location and/or name of new files.

/A Copies only files with the archive attribute set, doesn't change the attribute.

/M Copies only files with the archive attribute set, turns off the archive attribute.

/D:m-d-y Copies files changed on or after the specified date. If no date is given, copies only those files whose source time is newer than the destination time.

/EXCLUDE:file1 [+file2][+file3]... Specifies a list of files containing strings. When any of the strings match any part of the absolute path of the file to be copied, that file will be excluded from being copied. For example, specifying a string like \obj\ or .obj will exclude all files underneath the directory obj or all files with the .obj extension respectively.

/P Prompts you before creating each destination file.

/S Copies directories and subdirectories except empty ones.

/E Copies directories and subdirectories, including empty ones. Same as /S /E. May be used to modify /T.

/V Verifies each new file.

/W Prompts you to press a key before copying.

/C Continues copying even if errors occur.

/I If destination does not exist and copying more than one file, assumes that destination must be a directory.

/Q Does not display file names while copying.

/F Displays full source and destination file names while copying.

/L Displays files that would be copied.

/H Copies hidden and system files also.

/R Overwrites read-only files.

/T Creates directory structure, but does not copy files. Does not include empty directories or subdirectories. /T /E includes empty directories and subdirectories.

/U Copies only files that already exist in destination.

/K Copies attributes. Normal Xcopy will reset read-only attributes.

/N Copies using the generated short names.

/O Copies file ownership and ACL information.

/X Copies file audit settings (implies /O).

/Y Suppresses prompting to confirm you want to overwrite an existing destination file.

/-Y Causes prompting to confirm you want to overwrite an existing destination file.

/Z Copies networked files in restartable mode.
?
2010-03-02 13:07:50 UTC
Not through telnet, no. You'd have to get access to that remote computer some other way. Map a drive to it, access it via FTP or Remote Desktop...something like that.
Andrew S
2010-03-02 13:19:12 UTC
If this is really what you want to do and telnet really is your only access, sure, there a whole load of file transfer protocols for over terminal links. x/y/zmodem and Kermit come to mind straight away.



On Windows Hyperterminal has support for all the protocols mentioned at the client end - use Transfer->Receive file. A quick web search should bring up appropriate server software: I won't give any recommendations here since I'm only really familiar with doing this on Unix machines, where I'd simply say use sz.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...