LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-06-2011, 02:53 AM   #1
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Rep: Reputation: 37
problem in ssh


Hi whenever i try to do any ssh related activity like.
ssh <servername>, scp some files to a server i get =true prompt and nothing happens.

For example:

Code:
# scp file1.txt SERVERIP/HOSTNAME:/usr/local/sbin/
root@SERVERIP/HOSTNAME's password:
= true
Nothing gets copied to destination server.

What could be the issue?

Last edited by pinga123; 05-06-2011 at 03:14 AM.
 
Old 05-06-2011, 05:06 AM   #2
metturarun
LQ Newbie
 
Registered: May 2011
Posts: 1

Rep: Reputation: 0
can you paste the command using to SCP?
 
Old 05-06-2011, 05:30 AM   #3
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Original Poster
Rep: Reputation: 37
Quote:
Originally Posted by metturarun View Post
can you paste the command using to SCP?
Command is already posted by me.
 
Old 05-06-2011, 05:54 AM   #4
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Original Poster
Rep: Reputation: 37
I Even reinstalled following packages but the problem seems not to be solved.
Code:
openssh-clients-4.3p2-29.el5
openssh-4.3p2-29.el5
openssh-server-4.3p2-29.el5
I guess someone has changed some configuration file of ssh.
I m not sure where exactly to look for.
 
Old 05-06-2011, 06:08 AM   #5
brownie_cookie
Member
 
Registered: Mar 2011
Location: Belgium
Distribution: CentOS release 5.5 (Final), Red Hat Enterprise Linux ES release 4 (Nahant Update 8)
Posts: 416
Blog Entries: 2

Rep: Reputation: 12
try something like this

Code:
ssh user@host scp-command
when he asks for a pass, give the password from the user (see command).
then normally it should work
and if you already this is this way, then i don't have an idea.. maybe first do a ssh-keyswap and then try again (then you don't have to fill in a password) but i don't think that's the problem..
 
Old 05-06-2011, 06:19 AM   #6
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Original Poster
Rep: Reputation: 37
Quote:
Originally Posted by brownie_cookie View Post
try something like this

Code:
ssh user@host scp-command
when he asks for a pass, give the password from the user (see command).
then normally it should work
and if you already this is this way, then i don't have an idea.. maybe first do a ssh-keyswap and then try again (then you don't have to fill in a password) but i don't think that's the problem..
It was working find after the installation .
I guess someone has made some configuration change . Not sure which file is modified since the installation.
 
Old 05-06-2011, 07:52 AM   #7
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Original Poster
Rep: Reputation: 37
I found out the problem was with wrong entry in /etc/.bashrc file.

the problem is resolved now.
 
  


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
Chroot SSH problem: ssh working, not SFTP & SCP. NaCo Linux - Security 3 02-01-2009 03:23 AM
ssh-agent, ssh-add and ssh-keygen AND CVS raylpc Linux - General 2 11-19-2008 03:50 AM
SSH problem - ssh-add not respond FerkoPica Linux - Security 6 05-07-2006 04:47 PM
ssh problem after creating an ssh alias. porotothorpe Linux - General 2 01-25-2006 08:56 PM

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

All times are GMT -5. The time now is 04:14 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