LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   copy or transfer files between 2 Linux computers (https://www.linuxquestions.org/questions/linux-newbie-8/copy-or-transfer-files-between-2-linux-computers-4175494844/)

why_so_serious 02-13-2014 07:44 PM

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.

iLuvDebian 02-13-2014 07:55 PM

There is ssh, scp, samba and ftp.

why_so_serious 02-13-2014 08:00 PM

Quote:

Originally Posted by iLuvDebian (Post 5117262)
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 :(

danielbmartin 02-13-2014 08:19 PM

Quote:

Originally Posted by why_so_serious (Post 5117258)
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

why_so_serious 02-13-2014 08:50 PM

Quote:

Originally Posted by danielbmartin (Post 5117275)
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.

iLuvDebian 02-13-2014 09:07 PM

Quote:

Originally Posted by why_so_serious (Post 5117265)
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.

why_so_serious 02-13-2014 09:11 PM

Quote:

Originally Posted by iLuvDebian (Post 5117298)
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)
:(

JJJCR 02-13-2014 09:12 PM

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/

why_so_serious 02-13-2014 11:34 PM

Quote:

Originally Posted by JJJCR (Post 5117302)
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.

JJJCR 02-14-2014 12:36 AM

Quote:

Originally Posted by why_so_serious (Post 5117371)
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?

why_so_serious 02-14-2014 12:49 AM

Quote:

Originally Posted by JJJCR (Post 5117410)
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.

JJJCR 02-14-2014 01:46 AM

glad you figured it out..which settings did you change the language?

why_so_serious 02-14-2014 01:51 AM

Quote:

Originally Posted by JJJCR (Post 5117439)
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 :)

JJJCR 02-14-2014 02:13 AM

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 :)

iLuvDebian 02-14-2014 04:23 PM

@ 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.


All times are GMT -5. The time now is 11:02 AM.