Fedora Linux Support Community & Resources Center
  #1  
Old 2nd November 2009, 09:31 AM
baggouras Offline
Registered User
 
Join Date: Nov 2009
Posts: 6
linuxfedorafirefox
Unhappy scp doesn't work

Greetings and hello to everybody
I'm using fedora 11 and though ssh works perfectly , scp doesn't work at all...
what i tried to do:

scp ttt.txt jojo@192.168.2.2:~

and nothing happend so i typed:

scp -v ttt.txt jojo@192.168.2.2:~

Executing: program /usr/bin/ssh host 192.168.2.2, user jojo, command scp -v -t ~
OpenSSH_5.2p1, OpenSSL 0.9.8k-fips 25 Mar 2009
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 192.168.2.2 [192.168.2.2] port 22.
debug1: Connection established.
debug1: identity file /home/vagoir/.ssh/identity type -1
debug1: identity file /home/vagoir/.ssh/id_rsa type -1
debug1: identity file /home/vagoir/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.2
debug1: match: OpenSSH_5.2 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.2
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host '192.168.2.2' is known and matches the RSA host key.
debug1: Found key in /home/vagoir/.ssh/known_hosts:5
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure. Minor code may provide more information
No credentials cache found

debug1: Unspecified GSS failure. Minor code may provide more information
No credentials cache found

debug1: Unspecified GSS failure. Minor code may provide more information


debug1: Next authentication method: publickey
debug1: Trying private key: /home/vagoir/.ssh/identity
debug1: Trying private key: /home/vagoir/.ssh/id_rsa
debug1: Trying private key: /home/vagoir/.ssh/id_dsa
debug1: Next authentication method: password
jojo@192.168.2.2's password:
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
debug1: Sending command: scp -v -t ~
Welcome jojo
[vagoir@localhost ~]$ debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
Transferred: sent 1456, received 1976 bytes, in 0.1 seconds
Bytes per second: sent 16056.1, received 21790.4
debug1: Exit status 0

but the file ttt.txt is nowhere... Can anybody help me? i've been trying for a month now but can't make it work.

Thanks for your time
Reply With Quote
  #2  
Old 2nd November 2009, 10:04 AM
Nokia's Avatar
Nokia Offline
Registered User
 
Join Date: Aug 2006
Location: /dev/realm/{Abba,Carpenters,...stage}
Posts: 3,286
linuxfedorafirefox
You copied ttt.txt as ~
See
Code:
man scp
__________________
For safer browsing, use OpenDNS nameservers 208.67.222.222 and 208.67.220.220

SELinux User Guide

AutoPager

Last edited by Nokia; 2nd November 2009 at 10:08 AM.
Reply With Quote
  #3  
Old 2nd November 2009, 02:20 PM
baggouras Offline
Registered User
 
Join Date: Nov 2009
Posts: 6
linuxfedorafirefox
but I have also tried
scp ttt.txt jojo@192.168.2.2

and

scp ttt.txt jojo@192.168.2.2:file.txt

neither works
is everything ok with the debug messages?
Reply With Quote
  #4  
Old 2nd November 2009, 06:20 PM
Nokia's Avatar
Nokia Offline
Registered User
 
Join Date: Aug 2006
Location: /dev/realm/{Abba,Carpenters,...stage}
Posts: 3,286
linuxfedorafirefox
Quote:
Originally Posted by baggouras View Post
but I have also tried
scp ttt.txt jojo@192.168.2.2

and

scp ttt.txt jojo@192.168.2.2:file.txt

neither works
is everything ok with the debug messages?
Post
Code:
  scp -v ttt.txt jojo@192.168.2.2:
__________________
For safer browsing, use OpenDNS nameservers 208.67.222.222 and 208.67.220.220

SELinux User Guide

AutoPager
Reply With Quote
  #5  
Old 3rd November 2009, 01:46 PM
baggouras Offline
Registered User
 
Join Date: Nov 2009
Posts: 6
linuxfedorafirefox
scp -v ttt.txt jojo@192.168.2.2:

[vagoir@localhost ~]$ scp -v ttt.txt jojo@192.168.2.2:
Executing: program /usr/bin/ssh host 192.168.2.2, user jojo, command scp -v -t .
OpenSSH_5.2p1, OpenSSL 0.9.8k-fips 25 Mar 2009
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 192.168.2.2 [192.168.2.2] port 22.
debug1: Connection established.
debug1: identity file /home/vagoir/.ssh/identity type -1
debug1: identity file /home/vagoir/.ssh/id_rsa type -1
debug1: identity file /home/vagoir/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.2
debug1: match: OpenSSH_5.2 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.2
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host '192.168.2.2' is known and matches the RSA host key.
debug1: Found key in /home/vagoir/.ssh/known_hosts:5
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure. Minor code may provide more information
No credentials cache found


debug1: Unspecified GSS failure. Minor code may provide more information
No credentials cache found


debug1: Unspecified GSS failure. Minor code may provide more information


debug1: Next authentication method: publickey
debug1: Trying private key: /home/vagoir/.ssh/identity
debug1: Trying private key: /home/vagoir/.ssh/id_rsa
debug1: Trying private key: /home/vagoir/.ssh/id_dsa
debug1: Next authentication method: password
jojo@192.168.2.2's password:
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
debug1: Sending command: scp -v -t .
Welcome jojo
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
Transferred: sent 1456, received 1976 bytes, in 0.1 seconds
Bytes per second: sent 21213.1, received 28789.1
debug1: Exit status 0
Reply With Quote
  #6  
Old 3rd November 2009, 10:54 PM
Nokia's Avatar
Nokia Offline
Registered User
 
Join Date: Aug 2006
Location: /dev/realm/{Abba,Carpenters,...stage}
Posts: 3,286
linuxfedorafirefox
Quote:
Originally Posted by baggouras View Post
[vagoir@localhost ~]$ scp -v ttt.txt jojo@192.168.2.2:
Executing: program /usr/bin/ssh host 192.168.2.2, user jojo, command scp -v -t .
OpenSSH_5.2p1, OpenSSL 0.9.8k-fips 25 Mar 2009
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 192.168.2.2 [192.168.2.2] port 22.
debug1: Connection established.
debug1: identity file /home/vagoir/.ssh/identity type -1
debug1: identity file /home/vagoir/.ssh/id_rsa type -1
debug1: identity file /home/vagoir/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.2
debug1: match: OpenSSH_5.2 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.2
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host '192.168.2.2' is known and matches the RSA host key.
debug1: Found key in /home/vagoir/.ssh/known_hosts:5
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure. Minor code may provide more information
No credentials cache found


debug1: Unspecified GSS failure. Minor code may provide more information
No credentials cache found


debug1: Unspecified GSS failure. Minor code may provide more information


debug1: Next authentication method: publickey
debug1: Trying private key: /home/vagoir/.ssh/identity
debug1: Trying private key: /home/vagoir/.ssh/id_rsa
debug1: Trying private key: /home/vagoir/.ssh/id_dsa
debug1: Next authentication method: password
jojo@192.168.2.2's password:
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
debug1: Sending command: scp -v -t .
Welcome jojo
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
Transferred: sent 1456, received 1976 bytes, in 0.1 seconds
Bytes per second: sent 21213.1, received 28789.1
debug1: Exit status 0
Transfer completed. What is the problem ?
__________________
For safer browsing, use OpenDNS nameservers 208.67.222.222 and 208.67.220.220

SELinux User Guide

AutoPager
Reply With Quote
  #7  
Old 3rd November 2009, 11:04 PM
baggouras Offline
Registered User
 
Join Date: Nov 2009
Posts: 6
windows_xp_2003firefox
the problem is that when i log in to jojo i cant find the file anywhere
Reply With Quote
  #8  
Old 3rd November 2009, 11:13 PM
Nokia's Avatar
Nokia Offline
Registered User
 
Join Date: Aug 2006
Location: /dev/realm/{Abba,Carpenters,...stage}
Posts: 3,286
linuxfedorafirefox
The scp works as expected. Post
Code:
ssh -v jojo@192.168.2.2
df -h
ls -la|grep *.txt
__________________
For safer browsing, use OpenDNS nameservers 208.67.222.222 and 208.67.220.220

SELinux User Guide

AutoPager
Reply With Quote
  #9  
Old 4th November 2009, 01:43 AM
baggouras Offline
Registered User
 
Join Date: Nov 2009
Posts: 6
linuxfedorafirefox
[vagoir@localhost ~]$ scp ttt.txt jojo@192.168.2.2:
jojo@192.168.2.2's password:
Welcome jojo
[vagoir@localhost ~]$ ssh -v jojo@192.168.2.2
OpenSSH_5.2p1, OpenSSL 0.9.8k-fips 25 Mar 2009
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 192.168.2.2 [192.168.2.2] port 22.
debug1: Connection established.
debug1: identity file /home/vagoir/.ssh/identity type -1
debug1: identity file /home/vagoir/.ssh/id_rsa type -1
debug1: identity file /home/vagoir/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.2
debug1: match: OpenSSH_5.2 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.2
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host '192.168.2.2' is known and matches the RSA host key.
debug1: Found key in /home/vagoir/.ssh/known_hosts:5
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure. Minor code may provide more information
No credentials cache found

debug1: Unspecified GSS failure. Minor code may provide more information
No credentials cache found

debug1: Unspecified GSS failure. Minor code may provide more information


debug1: Next authentication method: publickey
debug1: Trying private key: /home/vagoir/.ssh/identity
debug1: Trying private key: /home/vagoir/.ssh/id_rsa
debug1: Trying private key: /home/vagoir/.ssh/id_dsa
debug1: Next authentication method: password
jojo@192.168.2.2's password:
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
Last login: Wed Nov 4 05:37:18 2009 from localhost
Welcome jojo
[jojo@localhost ~]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
44G 18G 24G 43% /
/dev/sda2 194M 38M 147M 21% /boot
tmpfs 1.5G 980K 1.5G 1% /dev/shm
df: `/home/vagoir/.gvfs': Permission denied
/dev/sdb1 3.7G 3.4G 311M 92% /media/6B24-419E
[jojo@localhost ~]$ ls -la | grep *.txt
[jojo@localhost ~]$

no txt file
Reply With Quote
  #10  
Old 4th November 2009, 06:54 AM
Nokia's Avatar
Nokia Offline
Registered User
 
Join Date: Aug 2006
Location: /dev/realm/{Abba,Carpenters,...stage}
Posts: 3,286
linuxfedorafirefox
Post
Code:
ls -l /home
on 192.168.2.2
__________________
For safer browsing, use OpenDNS nameservers 208.67.222.222 and 208.67.220.220

SELinux User Guide

AutoPager
Reply With Quote
  #11  
Old 4th November 2009, 07:38 AM
diamond_ramsey's Avatar
diamond_ramsey Offline
Registered User
 
Join Date: Aug 2009
Posts: 752
linuxfedorafirefox
:) baggouras, thank you for your posts. :)

Quote:
Originally Posted by baggouras View Post
...[jojo@localhost ~]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
44G 18G 24G 43% /
/dev/sda2 194M 38M 147M 21% /boot
tmpfs 1.5G 980K 1.5G 1% /dev/shm
df: `/home/vagoir/.gvfs': Permission denied
/dev/sdb1 3.7G 3.4G 311M 92% /media/6B24-419E
...
baggouras, thank you for your posts.

Sounds strange...

> df: `/home/vagoir/.gvfs': Permission denied

After you do, ssh -v jojo@192.168.2.2

Could you do the mount command and post results.

Off-hand, from the machine which you are doing the ssh and scp from, what is it's ip addr

Hope this helps.
__________________
2 dual cores, 11 GB RAM, F14 Laughlin - 2.6.35.14-106.fc14.x86_64 & 2.6.35.14-106.fc14.i686.PAE
2 dual cores, 11 GB RAM, F15 Lovelock - 2.6.43.8-2.fc15.x86_64 & 2.6.43.8-2.fc15.i686
3 dual cores, 19 GB RAM, F16 Verne - 3.6.2-1.fc16.x86_64 & 3.6.2-1.fc16.i686
2 dual cores, 11 GB RAM, F17 Beefy Miracle - 3.6.2-4.fc17.x86_64 / .i686
16 x86_64 computing cores,80 GB RAM & 8 SATA Seagate 7200.12 500 GB harddisks
Reply With Quote
  #12  
Old 4th November 2009, 09:35 AM
sej7278 Offline
Registered User
 
Join Date: Sep 2004
Posts: 2,008
linuxfedorafirefox
you need to copy to a valid url, if you just use ip: or ip:~ then it will not work as essentially you're trying to replace your home directory with the file!

try "scp file.txt user@host:/home/user/"
Reply With Quote
  #13  
Old 15th November 2009, 01:08 PM
baggouras Offline
Registered User
 
Join Date: Nov 2009
Posts: 6
linuxfedorafirefox
ok

Sorry that it took me a while to post but i had a problem with my laptop and i had to format it...So i reinstall Fedora 11 and i no longer have a problem with scp i dont know what was the problem, but now everything is allright. I would like to thank you for helping me out, I'm a noob user but i really like fedora. keep up the good work.
saludos
Reply With Quote
Reply

Tags
scp, work

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
massenger work but firefox and program update didnt work mahmoud200m Servers & Networking 0 27th July 2008 07:27 PM
program does not work the first time it is started, work only after restart powah Using Fedora 2 17th November 2007 02:40 PM
Great work Fedora´s programmers, Fedora8 doesnt work on PS3. akenateb Mac Chat 5 9th November 2007 07:56 PM
cedega 5.1 only 2d menus work in games but 3d doesn't seem to work rantanplan Using Fedora 2 29th May 2006 06:52 PM
My microphone doesn't work, or doesnt work with teamspeak boyd98 Hardware & Laptops 2 12th May 2006 03:00 AM


Current GMT-time: 10:37 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat