Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i am using fedora core 7 and ..............
after executing scp coomand from other computers to my computer after providing user name and passwd it is logged out .............
i m unable to find where the problem is???
though the ssh port is opened .............
please help me out...........
thanx in advance...........
The scp command does not provide interactive login on the remote machine, it simply copies and exits. Do you get any error message? What about debugging output (scp -v)?
have a user raghav when i m using scp from other comp and user raghav to transfer the file from my comp to other comp in network its is giving the following error .............
the message which i have said to rec after logging as hello welcome raghav.................
and connection is closed without file transfer ........................
thanx in advance........
sir i have tried the command with -v option and i m gettinf the following output have a lokk at it ............
Executing: program /usr/bin/ssh host 172.31.81.89, user raghav, command scp -v -f nc
OpenSSH_4.5p1, OpenSSL 0.9.8b 04 May 2006
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 172.31.81.89 [172.31.81.89] port 22.
debug1: Connection established.
debug1: identity file /home/raghav/.ssh/identity type -1
debug1: identity file /home/raghav/.ssh/id_rsa type -1
debug1: identity file /home/raghav/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.5
debug1: match: OpenSSH_4.5 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.5
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc 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 '172.31.81.89' is known and matches the RSA host key.
debug1: Found key in /home/raghav/.ssh/known_hosts:21
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
No credentials cache found
Debugging messages look ok, except for the exit status, but...
1. The authentication method gssapi-with-mic does not work and can be disabled, either by modifying the /etc/ssh/ssh_config or by passing the option in the command line:
2. The welcome message, as any other output coming from the initialization files (.bashrc or .profile) can trigger the scp failure. To test this, you can try to temporarily remove the welcome message from wherever is generated and retry the scp command.
3. The message
Code:
Sending file modes: C0664 0 nc
means you're copying an empty file, but maybe you're just testing. Anyway, scp permits 0 bytes transfers.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.