Linux problem in ssh.

Compiler

Disciple
Hi whenever i try to do any ssh related activity like.

ssh <servername>, scp some files to a server i get =true I have checked modt message but nothing is there.

I can able to get the ssh session but for scp, =true prompt get displayed but nothing happens.

For example:

Code:
# scp file1.txt root@SERVERIP/HOSTNAME:/usr/local/sbin/

root@SERVERIP/HOSTNAME's password:

= true
Nothing gets copied to destination server.

What could be the issue?

Code:
# ssh -v

OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008

usage: ssh [-1246AaCfgkMNnqsTtVvXxY] [-b bind_address] [-c cipher_spec]

           [-D [bind_address:]port] [-e escape_char] [-F configfile]

           [-i identity_file] [-L [bind_address:]port:host:hostport]

           [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]

           [-R [bind_address:]port:host:hostport] [-S ctl_path]

           [-w tunnel:tunnel] [user@]hostname [command]
Code:
# lsb_release -a

LSB Version:    :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch

Distributor ID: OracleVMserver

Description:    Oracle VM server release 2.2.0

Release:        2.2.0

Codename:       n/a

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.
 
Is this a shared machine? Did you see which particular path of executable is being invoked? Also another basic check is to see if there are any aliases set or if the executable is in fact a link to something else
 
are you entering "SERVERIP/HOSTNAME" and should be "SERVERNAME:HOSTNAME"

also note, many times ROOT logins are disabled... you should first login with normal user, then do "sudo" or "su -" ...
 
agantuk said:
Is this a shared machine? Did you see which particular path of executable is being invoked? Also another basic check is to see if there are any aliases set or if the executable is in fact a link to something else
Yes its a shared machine.

Code:
# which scp

/usr/bin/scp

Code:
# alias

alias cp='cp -i'

alias l.='ls -d .* --color=tty'

alias ll='ls -l --color=tty'

alias ls='ls --color=tty'

alias mv='mv -i'

alias rm='rm -i'

alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'


--- Updated Post - Automerged ---

vishalrao said:
are you entering "SERVERIP/HOSTNAME" and should be "SERVERNAME:HOSTNAME"

also note, many times ROOT logins are disabled... you should first login with normal user, then do "sudo" or "su -" ...
Instead of putting actual ip i have just specified as SERVERIP/HOSTNAME(company policy :( )

ROOT login is not disabled as i can to ssh from other server to the machine.

--- Updated Post - Automerged ---

vishalrao said:
are you entering "SERVERIP/HOSTNAME" and should be "SERVERNAME:HOSTNAME"

also note, many times ROOT logins are disabled... you should first login with normal user, then do "sudo" or "su -" ...
The only problem is that when doing scp its not copying any file.

When used -v option with scp i found out that

After supplying password it says.

Connection closed by UNKNOWN

lost connection

--- Updated Post - Automerged ---

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

the problem is resolved now.
 
Back
Top