"Connection closed by" error


 
Thread Tools Search this Thread
Operating Systems Solaris "Connection closed by" error
# 1  
Old 06-09-2010
"Connection closed by" error

OS: Solaris 8 Sparc

server1:userA:/home/userA# ssh userB@server1
Connection closed by < IP address>

Problem: From being a userA, I am unable to connect/ssh to the same server as when trying to use a different account. (userB)

Do you know where can i start checking? Here are some additional info.

- ssh service is up and running.
- userA and userB has a similar account setup
# 2  
Old 06-09-2010
Try looking at the debug info from:

Code:
ssh -vvv userB@server1

Also, you can truss the process.

Is the connection being closed after prompting for a password?
# 3  
Old 06-09-2010
your userB is root?
# 4  
Old 06-10-2010
Quote:
Originally Posted by verdepollo
Try looking at the debug info from:

Code:
ssh -vvv userB@server1

Also, you can truss the process.

Is the connection being closed after prompting for a password?
it doesn't prompt for password.

---------- Post updated at 11:47 AM ---------- Previous update was at 11:46 AM ----------

Quote:
Originally Posted by incredible
your userB is root?
User A and B are both normal user with the same group.

---------- Post updated at 12:06 PM ---------- Previous update was at 11:47 AM ----------

Here is some of the debug output
Code:
   server1:userA:/home/userA# ssh -vvv server1 -l userB
  
OpenSSH_3.8.1p1, OpenSSL 0.9.7d 17 Mar 2004
  debug1: Reading configuration data /etc/ssh/ssh_config
  debug1: Applying options for *
  debug3: RNG is ready, skipping seeding
  debug2: ssh_connect: needpriv 0
  debug1: Connecting to server1 [XXX.XXX.XX.XX] port 22.
  debug1: Connection established.
  debug1: identity file /home/userA/.ssh/identity type -1
  debug3: Not a RSA1 key file /home/userA/.ssh/id_rsa.
  debug2: key_type_from_name: unknown key type '-----BEGIN'
  debug3: key_read: missing keytype
  debug3: key_read: missing whitespace
  debug3: key_read: missing whitespace
  debug2: key_type_from_name: unknown key type '-----END'
  debug3: key_read: missing keytype
  debug1: identity file /home/userA/.ssh/id_rsa type 1
  debug3: Not a RSA1 key file /home/userA/.ssh/id_dsa.
  debug2: key_type_from_name: unknown key type '-----BEGIN'
  debug3: key_read: missing keytype
  debug3: key_read: missing whitespace
  debug3: key_read: missing whitespace
  debug3: key_read: missing whitespace
  debug2: key_type_from_name: unknown key type '-----END'
  debug3: key_read: missing keytype
  debug1: identity file /home/userA/.ssh/id_dsa type 2
  debug1: Remote protocol version 2.0, remote software version OpenSSH_3.8.1p1
  debug1: match: OpenSSH_3.8.1p1 pat OpenSSH*
  debug1: Enabling compatibility mode for protocol 2.0
  debug1: Local version string SSH-2.0-OpenSSH_3.8.1p1
  debug3: RNG is ready, skipping seeding
  debug1: SSH2_MSG_KEXINIT sent
  debug1: SSH2_MSG_KEXINIT received
  debug2: kex_parse_kexinit: none,zlib
  debug2: kex_parse_kexinit: none,zlib
  debug2: kex_parse_kexinit: 
  debug2: kex_parse_kexinit: 
  debug2: kex_parse_kexinit: first_kex_follows 0 
  debug2: kex_parse_kexinit: reserved 0 
  debug2: mac_init: found hmac-md5
  debug1: kex: server->client aes128-cbc hmac-md5 none
  debug2: mac_init: found hmac-md5
  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
  debug2: dh_gen_key: priv key bits set: 145/256
  debug2: bits set: 522/1024
  debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
  debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
  debug3: check_host_in_hostfile: filename /home/userA/.ssh/known_hosts
  debug3: check_host_in_hostfile: match line 15
  debug3: check_host_in_hostfile: filename /home/userA/.ssh/known_hosts
  debug3: check_host_in_hostfile: match line 15
  debug1: Host 'server1' is known and matches the RSA host key.
  debug1: Found key in /home/userA/.ssh/known_hosts:15
  debug2: bits set: 521/1024
  debug1: ssh_rsa_verify: signature correct
  debug2: kex_derive_keys
  debug2: set_newkeys: mode 1
  debug1: SSH2_MSG_NEWKEYS sent
  debug1: expecting SSH2_MSG_NEWKEYS
  debug2: set_newkeys: mode 0
  debug1: SSH2_MSG_NEWKEYS received
  debug1: SSH2_MSG_SERVICE_REQUEST sent
  debug2: service_accept: ssh-userauth
  debug1: SSH2_MSG_SERVICE_ACCEPT received
  debug2: key: /home/userA/.ssh/identity (0)
  debug2: key: /home/userA/.ssh/id_rsa (122a80)
  debug2: key: /home/userA/.ssh/id_dsa (1203f8)
  debug1: Authentications that can continue: publickey,password,keyboard-interactive,hostbased
  debug3: start over, passed a different list publickey,password,keyboard-interactive,hostbased
  debug3: preferred hostbased,publickey,keyboard-interactive,password
  debug3: authmethod_lookup hostbased
  debug3: remaining preferred: publickey,keyboard-interactive,password
  debug3: authmethod_is_enabled hostbased
  debug1: Next authentication method: hostbased
  debug2: userauth_hostbased: chost server1.
  debug2: ssh_keysign called
  debug3: ssh_msg_send: type 2
  debug3: ssh_msg_recv entering
  debug2: we sent a hostbased packet, wait for reply
  debug1: Remote: Ignoring wild host/user names in /home/userB/.rhosts.
  debug1: Authentications that can continue: publickey,password,keyboard-interactive,hostbased
  debug2: userauth_hostbased: chost server1.
  debug2: ssh_keysign called
  debug3: ssh_msg_send: type 2
  debug3: ssh_msg_recv entering
  debug2: we sent a hostbased packet, wait for reply
  debug1: Remote: Ignoring wild host/user names in /home/userB/.rhosts.
  debug1: Authentications that can continue: publickey,password,keyboard-interactive,hostbased
  debug1: No more client hostkeys for hostbased authentication.
  debug2: we did not send a packet, disable method
  debug3: authmethod_lookup publickey
  debug3: remaining preferred: keyboard-interactive,password
  debug3: authmethod_is_enabled publickey
  debug1: Next authentication method: publickey
  debug1: Trying private key: /home/userA/.ssh/identity
  debug3: no such identity: /home/userA/.ssh/identity
  debug1: Offering public key: /home/userA/.ssh/id_rsa
  debug3: send_pubkey_test
  debug2: we sent a publickey packet, wait for reply
  debug1: Authentications that can continue: publickey,password,keyboard-interactive,hostbased
  debug1: Offering public key: /home/userA/.ssh/id_dsa
  debug3: send_pubkey_test
  debug2: we sent a publickey packet, wait for reply
  Connection closed by XXX.XXX.XX.XX

Moderator's Comments:
Mod Comment Please, please, please, use CODE tags

Last edited by pludi; 06-10-2010 at 03:16 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

2. UNIX for Dummies Questions & Answers

SSHd is running, but cant connect "Network error: Connection refused"

Hi, i checked on rhel VPS is running sshd (service ssh status) But i cant connect via putty: "Network error: Connection refused" Please which log file in my centos rhel linux i need to watch or what are steps to do to discover cause? (3 Replies)
Discussion started by: postcd
3 Replies

3. Solaris

"Connection closed by foreign host error" in Solaris 10

Version Details Solaris version : Oracle Solaris 10 8/11 s10x_u10wos_17b X86 $ uname -a SunOS tippy178 5.10 Generic_147441-01 i86pc i386 i86pcThe Issue +++++++++ I have two solaris 10 Virtual Machines created using Virtual Box. One of my applications running on Source was trying to connect... (9 Replies)
Discussion started by: kraljic
9 Replies

4. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

5. Shell Programming and Scripting

shell script/telnet - Remove/Control "Connection closed by foreign host"

How do I gain control of the "Connection closed by foreign host" message telnet yields when you connect to it in a shell script? I'm using the output: #!/usr/local/bin/bash count=$(ping -c 1 $1 | grep 'received' | awk -F',' '{ print $2 }' | awk '{ print $1 }') if ; then echo "$1 PING "... (2 Replies)
Discussion started by: phpfreak
2 Replies

6. UNIX for Advanced & Expert Users

"Connection closed by remote host" while doing ssh to a solaris box

Hi All, When i try to do ssh from a linux to solaris box its throughing "Connection closed by remote host". Please not that this error is not occuring every time i do ssh, it occurs at random timing( Mostly ssh is successful) - unfortunately my script which is doing ssh is falling at this time... (4 Replies)
Discussion started by: pkumar7
4 Replies

7. HP-UX

XIO: fatal IO error 232 (Connection reset by peer) on X server "192.168.1.239:0.0"

Hi All... I'm newbie here..., i have problem when installing oracle9206, i use HPUX 11.11, i'm using Xmanager enterprise 2.1 for forwarding from server A to my laptop # export DISPLAY=192.168.1.239:0.0 # echo $DISPLAY output ==> 192.168.1.239:0.0 at the oracle directory, i execute ... (3 Replies)
Discussion started by: grimanda
3 Replies

8. Cybersecurity

"421 service not available, remote server has closed connection."?

"421 service not available, remote server has closed connection." I tried to do ftp to one of the unix server . ftp hostname password It get connects when i do any command it throws error ftp> ls "421 service not available, remote server has closed connection." (1 Reply)
Discussion started by: vishaldsh
1 Replies

9. UNIX for Dummies Questions & Answers

SAM closed unexpectedlly, "indicating error in every applications"

Incidentally closed the shell that I open the SAM, suddenly SAM closed unexpectedlly. As a result SAM is reporting error messages in every application that is being opened. Captured error message unexpected exit: process /usr/sam/lbin/samx/ -C -p 1358 -s br_sa_bdevs /usr/sam/lib///br.ui... (1 Reply)
Discussion started by: real-chess
1 Replies
Login or Register to Ask a Question