|
[VIEWED 7226
TIMES]
|
SAVE! for ease of future access.
|
|
|
|
manramro6
Please log in to subscribe to manramro6's postings.
Posted on 02-21-16 10:07
PM
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
| |
Hello Sajha mitra haru, I need to transfer file/folder from Windows PC to Linux using PUTTY terminal and Linux to PC. Any idea? Which command can I use?
|
| |
|
|
|
|
sixfour
Please log in to subscribe to sixfour's postings.
Posted on 02-21-16 11:04
PM [Snapshot: 36]
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
| |
use winscp. It's much better. You can send/receive file back and forth and it uses SFTP if you choose to. It's drag and drop afterwards. Virtualization also helps. With Putty, you can only do "scp", I am not aware you can download files direct from it to your windows PC. This command below is basically for copying files from your current linux host to remote linux host. scp -P 2222 *.txt [email protected]:/some/remote/directory
|
| |
|
|
manramro6
Please log in to subscribe to manramro6's postings.
Posted on 02-21-16 11:25
PM [Snapshot: 49]
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
| |
Hi sixfour, Thank you for your respond. I must use only Command line because I do't have privilege for other features. Like you mention drag and drop. Therefore, I need the command.
|
| |
|
|
sixfour
Please log in to subscribe to sixfour's postings.
Posted on 02-21-16 11:40
PM [Snapshot: 58]
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
| |
well, I was gonna say to use X11, another feature that you can use with putty to download files. I've read about it but never tried. But wait, so you want to copy files to windows right? Windows is GUI, if you can use Putty, why can't you use winscp? You can use the same login credentials to run winscp. Winscp is like ftp. It's not like putty. You still need to use putty to do things. And you don't need any privilege to run winscp, it just downloads and run it. I don't know if you can download if that's what you are talking when you said privilege. Here is a tip. What would I do if I were you. 1. I'm assuming you have a separate personal webhost somewhere. Enable ssh access to that webhost. Connect from your current linux to your webhost via scp, share files as you wish. 2. Back home, use winscp on your own computer and transfer files to/from your webhost. 3. At work, use your linux machine to download files from your personal webhost. Bit tedious but it always works for me.
|
| |
|
|
sixfour
Please log in to subscribe to sixfour's postings.
Posted on 02-21-16 11:54
PM [Snapshot: 64]
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
| |
Here's an example, am creating a topology. PC A(Linux) - Work PC, less privilege - 172.16.2.104 PC B(Windows) - Home PC, - 192.168.1.1 PC C(Webhost) - Remote Personal hosting - 10.10.200.254 From PC A(Linux), #cd /home/dir1/dir2 change to directory where your files are #ls -ld check the permission if needed #scp -P 2222 *.* [email protected]:. here I'm using 2222 as port number, yours may be different, u can filter file type, here I did *.* or if you want to copy all files , you can do only * instead of *.* and it'll dump all files in home directory of remote host 10.10.200.254 From PC B(windows) -install winscp -access to your webhost 10.10.200.254 -download all files needed or upload any files for ur linux PC at work. From PC A(Linux) #scp -P 2222 [email protected]:/home/* . this will copy all files from /home directory of remote host to your linux machine's current directory. It's just an idea how to get around. Hope that helps.
|
| |
|
|
sixfour
Please log in to subscribe to sixfour's postings.
Posted on 02-21-16 11:56
PM [Snapshot: 77]
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
| |
Tips - if you want to transfer folders, you need to use tarballs.
|
| |
|
|
fdpower
Please log in to subscribe to fdpower's postings.
Posted on 02-22-16 5:25
PM [Snapshot: 216]
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
| |
I hope you have figured this out by now. Also remember in some cases you need to run dostounix or sed to convert the files so that you don't see weird characters when you cat the file. Windows does new line character differently than linux. I use FileZilla sever to setup a FTP server in windows. Place the files in the appropriate directory and then just run basic ftp commands from linux get / put files. #ftp user@ #Enter credentials #cd #bin #hash #get yourfilename #put youfilename #bye -------------------------------------------------------- http://www.thegeekstuff.com/2010/06/ftp-sftp-tutorial/
|
| |
|
|