LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-13-2014, 07:44 PM   #1
why_so_serious
LQ Newbie
 
Registered: Oct 2013
Posts: 26

Rep: Reputation: Disabled
copy or transfer files between 2 Linux computers


Hi everyone, I am newbie for Linux. I have 2 Linux computers. I would like to copy file from one Linux computer to another. So how can I do that? Is there any command line to do that? Thanks million.
 
Old 02-13-2014, 07:55 PM   #2
iLuvDebian
LQ Newbie
 
Registered: Feb 2014
Posts: 8

Rep: Reputation: Disabled
There is ssh, scp, samba and ftp.
 
Old 02-13-2014, 08:00 PM   #3
why_so_serious
LQ Newbie
 
Registered: Oct 2013
Posts: 26

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by iLuvDebian View Post
There is ssh, scp, samba and ftp.
I had installed ssh in both machines. And I tried to use scp also. But that scp asked me the password. I don't know password.

Code:
scp -v helloworld.c debian@192.x.x.x:/home/bom
debian@192.x.x.x's password:
I don't know password
 
Old 02-13-2014, 08:19 PM   #4
danielbmartin
Senior Member
 
Registered: Apr 2010
Location: Apex, NC, USA
Distribution: Mint 17.3
Posts: 1,575

Rep: Reputation: 478Reputation: 478Reputation: 478Reputation: 478Reputation: 478
Quote:
Originally Posted by why_so_serious View Post
I have 2 Linux computers. I would like to copy file from one Linux computer to another. So how can I do that? Is there any command line to do that?
I did this by copying the file onto a flash memory stick, moving the stick to the other computer, and copying from the stick onto the hard drive. Drag and drop, easy.

Daniel B. Martin
 
Old 02-13-2014, 08:50 PM   #5
why_so_serious
LQ Newbie
 
Registered: Oct 2013
Posts: 26

Original Poster
Rep: Reputation: Disabled
Thumbs down

Quote:
Originally Posted by danielbmartin View Post
I did this by copying the file onto a flash memory stick, moving the stick to the other computer, and copying from the stick onto the hard drive. Drag and drop, easy.

Daniel B. Martin
Ha ha.. for like that of thing, I won't come to this forum and ask. I wanna transfer with command line.
 
Old 02-13-2014, 09:07 PM   #6
iLuvDebian
LQ Newbie
 
Registered: Feb 2014
Posts: 8

Rep: Reputation: Disabled
Quote:
Originally Posted by why_so_serious View Post
I had installed ssh in both machines. And I tried to use scp also. But that scp asked me the password. I don't know password.

Code:
scp -v helloworld.c debian@192.x.x.x:/home/bom
debian@192.x.x.x's password:
I don't know password
If the account is yours, you should know the password or ask the administrator to reset a new one for you. If you are the root user, you can reset the password with

Code:
passwd debian
This is optional, but once you get a new password, you can setup private key authentication to login automatically. Youtube has many tutorials on this subject.
 
Old 02-13-2014, 09:11 PM   #7
why_so_serious
LQ Newbie
 
Registered: Oct 2013
Posts: 26

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by iLuvDebian View Post
If the account is yours, you should know the password or ask the administrator to reset a new one for you. If you are the root user, you can reset the password with

Code:
passwd debian
This is optional, but once you get a new password, you can setup private key authentication to login automatically. Youtube has many tutorials on this subject.
is it my debian's password? But after I type debian's password, it said
Code:
Authentications that can continue: (publickey, password)
 
Old 02-13-2014, 09:12 PM   #8
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 1,311

Rep: Reputation: 223Reputation: 223Reputation: 223
check out this link it might help:
Using rsync to Transfer and Synchronize Local and Remote Systems

http://www.liquidweb.com/kb/using-rs...emote-systems/

or check out this thread, check the last post:
https://www.linuxquestions.org/quest...es-4175487365/
 
Old 02-13-2014, 11:34 PM   #9
why_so_serious
LQ Newbie
 
Registered: Oct 2013
Posts: 26

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by JJJCR View Post
check out this link it might help:
Using rsync to Transfer and Synchronize Local and Remote Systems

http://www.liquidweb.com/kb/using-rs...emote-systems/

or check out this thread, check the last post:
https://www.linuxquestions.org/quest...es-4175487365/
hi thanks for your answer. It is still asking me the password, I entered my debian password, still cannot.
 
Old 02-14-2014, 12:36 AM   #10
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 1,311

Rep: Reputation: 223Reputation: 223Reputation: 223
Question

Quote:
Originally Posted by why_so_serious View Post
hi thanks for your answer. It is still asking me the password, I entered my debian password, still cannot.
You are login as root or what user account?

Do you use sudo to copy?

Have you check sudoers file?

Last edited by JJJCR; 02-14-2014 at 12:37 AM. Reason: edit
 
Old 02-14-2014, 12:49 AM   #11
why_so_serious
LQ Newbie
 
Registered: Oct 2013
Posts: 26

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by JJJCR View Post
You are login as root or what user account?

Do you use sudo to copy?

Have you check sudoers file?
Hi thanks for your answer. I can get it. My keyboard was using wrong language. So when I type password, it is not correct. thanks.
 
Old 02-14-2014, 01:46 AM   #12
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 1,311

Rep: Reputation: 223Reputation: 223Reputation: 223
glad you figured it out..which settings did you change the language?
 
Old 02-14-2014, 01:51 AM   #13
why_so_serious
LQ Newbie
 
Registered: Oct 2013
Posts: 26

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by JJJCR View Post
glad you figured it out..which settings did you change the language?
Coz I m using window 7. I used VMware to use debian as well. So debian keyboard and window 7 is using the same. I changed different language for my window 7 keyboard. so...
anyway thanks for your help
 
Old 02-14-2014, 02:13 AM   #14
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 1,311

Rep: Reputation: 223Reputation: 223Reputation: 223
Quote:
Hi everyone, I am newbie for Linux. I have 2 Linux computers. I would like to copy file from one Linux computer to another. So how can I do that? Is there any command line to do that? Thanks million.
I thought you have 2 Linux computer as what you stated on your post number 1 but now its on VMWare.. cool
 
Old 02-14-2014, 04:23 PM   #15
iLuvDebian
LQ Newbie
 
Registered: Feb 2014
Posts: 8

Rep: Reputation: Disabled
@ why_so_serious

When you said you enter your password and couldn't connect, I assumed the other possible reason is the root user setup his ssh server to accept only private keys authentication and no passwords because I read it is more secure to login to ssh servers with private keys as to passwords.

Anyway, I'm glad you got it solved by correcting the keyboard language.

Last edited by iLuvDebian; 02-14-2014 at 04:24 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] copy files between 2 linux computers sandybeach2000 Linux - Networking 5 11-25-2013 01:50 AM
[SOLVED] How to transfer(copy) files from Linux to windows? glock356 Linux - General 9 08-25-2011 02:54 AM
Files transfer between linux and windows xp computers bsrao12 Linux - Networking 5 05-06-2011 02:42 AM
scp - Two computers, can only transfer files one way jqweezy Linux - Networking 2 02-13-2009 02:12 PM
data transfer between two computers jamaso Linux - General 4 09-21-2004 11:22 AM

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

All times are GMT -5. The time now is 11:21 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration