LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   problem in ssh (https://www.linuxquestions.org/questions/linux-newbie-8/problem-in-ssh-879125/)

pinga123 05-06-2011 01:53 AM

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?

metturarun 05-06-2011 04:06 AM

can you paste the command using to SCP?

pinga123 05-06-2011 04:30 AM

Quote:

Originally Posted by metturarun (Post 4348149)
can you paste the command using to SCP?

Command is already posted by me.

pinga123 05-06-2011 04:54 AM

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.

brownie_cookie 05-06-2011 05:08 AM

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

pinga123 05-06-2011 05:19 AM

Quote:

Originally Posted by brownie_cookie (Post 4348206)
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.

pinga123 05-06-2011 06:52 AM

I found out the problem was with wrong entry in /etc/.bashrc file.

the problem is resolved now.


All times are GMT -5. The time now is 08:34 PM.