LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 07-28-2015, 05:18 PM   #1
Mark_S
LQ Newbie
 
Registered: Jul 2015
Posts: 28

Rep: Reputation: Disabled
Is there anyway to copy a file on a remote desktop to my hard drive?


I've been using telnet centos for the class and now the class is ending (just finished the exam a few hours ago) and I was wondering if there were any way to transfer some of the practice files I've been working with to my local hard drive. As far as I can tell the two systems are completely independent and can't communicate.
 
Old 07-28-2015, 05:28 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
What operating system/distro are you running, what are you connecting to, and how are you connecting to it?
 
Old 07-28-2015, 05:33 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,699

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
You can not transfer files using telnet. You need to contact your instructor to see if there is anyway to download your source code. The usual methods are ftp and scp. I assume neither nfs or SMB/CIFS are enabled.
 
1 members found this post helpful.
Old 07-28-2015, 06:19 PM   #4
Mark_S
LQ Newbie
 
Registered: Jul 2015
Posts: 28

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by suicidaleggroll View Post
What operating system/distro are you running, what are you connecting to, and how are you connecting to it?
I've been using my mac, the google chrome browser to connect to a remote windows desktop, then I type cmd into the command prompt there and type in telnet centos.
 
Old 07-28-2015, 06:22 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,699

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Interesting. Why not use use the telnet client on your Mac?
 
Old 07-28-2015, 06:29 PM   #6
Mark_S
LQ Newbie
 
Registered: Jul 2015
Posts: 28

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
Interesting. Why not use use the telnet client on your Mac?
This course only covered some very basic commands, connecting with a server or even manipulating files across different drives was never covered. I can copy files, that's just a matter of inserting the drive letter and directory location into the command isn't it? But I don't know how I would connect to the server using the terminal window.
 
Old 07-28-2015, 06:29 PM   #7
SpudMan13
LQ Newbie
 
Registered: Jul 2015
Posts: 8

Rep: Reputation: Disabled
Do both systems have Internet access? You could create a tarball and mail it to yourself.
 
Old 07-28-2015, 06:45 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,699

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
What I posted was just an aside comment but then I do not know how networking was configured. Instead of using a remote desktop and then using telnet it might of been possible to just use telnet on your mac.

As suggested I would ask your instructor.
 
Old 07-29-2015, 05:04 AM   #9
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,485

Rep: Reputation: Disabled
Under Linux/BSD you can use
Code:
wget -c <url>
but you will have to have the url.

In a browser, use save page as.
 
Old 07-29-2015, 08:59 AM   #10
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
If they're connected on a network, and can talk to each other, and both have netcat installed, and the firewall isn't in the way.

Receiving machine:
nc -l -w 180 -p 5900 > filename.destination

Sending machine:
nc -q 0 -n $(IP) 5900 < filename.source

Where 5900 is the port used in this case, but could be any available port afaik. And $(IP) needs to be the IP of the receiving machine. I tend to use this a lot for firewall scripts and other things as it's mostly there by default, and doesn't require setting up any sort of server stuff. But if the firewall is in the way, then it fails.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
It Burns. .....but file wont copy back to hard drive. readmore Linux - Desktop 6 03-03-2013 10:45 AM
I want to copy my hard drive to a larger hard drive and boot from the new drive. lpmorgan1 Ubuntu 8 09-07-2009 11:26 PM
File copy error from USB hard drive Jugney Linux - General 3 04-29-2008 05:55 AM
How to copy file from usb device to hard drive?????? Overcool Linux - Newbie 1 01-04-2007 07:06 PM
Copy A File Off A CD To The Hard Drive In Command Line nickae77 Linux - Newbie 4 05-21-2004 04:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration