Fedora Linux Support Community & Resources Center
Sections ›› Home | Forums | Guidelines | Forum Help | Fedora FAQ | Fedora News 

Go Back   FedoraForum.org > Fedora Support > Networking

Networking Networking with Fedora such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2009-11-02, 02:31 AM CST
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 2009-11-02, 03:04 AM CST
Nokia's Avatar
Nokia Offline
Registered User
 
Join Date: Aug 2006
Location: /dev/realm/{Abba,Carpenters,...stage}
Posts: 2,976
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; 2009-11-02 at 03:08 AM CST.
Reply With Quote
  #3  
Old 2009-11-02, 07:20 AM CST
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 2009-11-02, 11:20 AM CST
Nokia's Avatar
Nokia Offline
Registered User
 
Join Date: Aug 2006
Location: /dev/realm/{Abba,Carpenters,...stage}
Posts: 2,976
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 2009-11-03, 06:46 AM CST
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 2009-11-03, 03:54 PM CST
Nokia's Avatar
Nokia Offline
Registered User
 
Join Date: Aug 2006
Location: /dev/realm/{Abba,Carpenters,...stage}
Posts: 2,976
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 2009-11-03, 04:04 PM CST
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 2009-11-03, 04:13 PM CST
Nokia's Avatar
Nokia Offline
Registered User
 
Join Date: Aug 2006
Location: /dev/realm/{Abba,Carpenters,...stage}
Posts: 2,976
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 2009-11-03, 06:43 PM CST
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 2009-11-03, 11:54 PM CST
Nokia's Avatar
Nokia Offline
Registered User
 
Join Date: Aug 2006
Location: /dev/realm/{Abba,Carpenters,...stage}
Posts: 2,976
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 2009-11-04, 12:38 AM CST
diamond_ramsey's Avatar
diamond_ramsey Offline
Registered User
 
Join Date: Aug 2009
Posts: 164
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.
__________________
=
Three dual core systems with 3.0 GB running the Fedora 12 (Constantine) kernel - vmlinuz-2.6.31.5-127.fc12.i686.PAE
One dual core system with 3.0 GB running the Fedora 13 kernel - 2.6.32-0.51.rc7.git2.fc13.i686.PAE
Eight (8) x86_64 computing cores, 16 GB of RAM and two SATA Seagate 7200.12 500 GB harddisks.
=
Reply With Quote
  #12  
Old 2009-11-04, 02:35 AM CST
sej7278 Online
Registered User
 
Join Date: Sep 2004
Posts: 1,763
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 2009-11-15, 06:08 AM CST
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

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 Networking 0 2008-07-27 12:27 PM CDT
program does not work the first time it is started, work only after restart powah General Support 2 2007-11-17 07:40 AM CST
Great work Fedora´s programmers, Fedora8 doesnt work on PS3. akenateb Mac & PPC 5 2007-11-09 12:56 PM CST
cedega 5.1 only 2d menus work in games but 3d doesn't seem to work rantanplan Software 2 2006-05-29 11:52 AM CDT
My microphone doesn't work, or doesnt work with teamspeak boyd98 Hardware 2 2006-05-11 08:00 PM CDT

Automatic Translations (Powered by Powered by Google):
Afrikaans Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Taiwanese Thai Turkish Ukrainian Vietnamese Yiddish

All times are GMT -7. The time now is 08:46 AM CST.

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
Hosting provided by ThePlanet



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 | Founding Members
Designed By Ewdison Then | Powered by vBulletin ©2000-2009, Jelsoft Enterprises Ltd.
FedoraForum is Powered by Open Source Projects and Products
vB Enterprise Translator (vBET) by NLP-er