Exit status 255 on sftp | Unix Linux Forums | Solaris

  Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Exit status 255 on sftp

Solaris


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 10-13-2008
GIC1986 GIC1986 is offline
Registered User
 
Join Date: Sep 2008
Last Activity: 23 January 2014, 4:51 AM EST
Location: India Chennai
Posts: 41
Thanks: 0
Thanked 1 Time in 1 Post
Question Exit status 255 on sftp

HI guys

When i try SFTP to a machine using a user account whose entry in
/etc/passwd as follows

user:x:8005:508::/export/home/user:/bin/false

and i am not placed my keys over there i am using the password option in the sftp

Since the keys are not there it ask for the password

and the password method was sucess but i am getting following messages


debug1: ssh-userauth2 successfull: method password
debug1: fd 6 setting O_NONBLOCK
debug1: fd 7 IS O_NONBLOCK
debug1: channel 0: new [client-session]
debug1: send channel open 0
debug1: Entering interactive session.
debug1: client_init id 0 arg 0
debug1: Sending subsystem: sftp
debug1: channel 0: open confirm rwindow 0 rmax 16384
debug1: channel_input_channel_request: channel: 0 rcvd request for exit-status reply 0
debug1: cb_fn 2b77c cb_event 91
debug1: channel 0: rcvd eof
debug1: channel 0: output open->drain
debug1: channel 0: obuf empty
debug1: channel 0: output drain->closed
debug1: channel 0: close_write
debug1: channel 0: rcvd close
debug1: channel 0: input open->closed
debug1: channel 0: close_read
debug1: channel 0: send close
debug1: channel 0: full closed2
debug1: channel_free: channel 0: status: The following connections are open:
#0 client-session (t4 r0 i8/0 o128/0 fd -1/-1)

debug1: channel_free: channel 0: dettaching channel user
debug1: Transferred: stdin 0, stdout 0, stderr 0 bytes in 0.0 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
debug1: Exit status 255
Couldn't read packet: Bad file number




please help
Sponsored Links
    #2  
Old 10-13-2008
GIC1986 GIC1986 is offline
Registered User
 
Join Date: Sep 2008
Last Activity: 23 January 2014, 4:51 AM EST
Location: India Chennai
Posts: 41
Thanks: 0
Thanked 1 Time in 1 Post
Hi all please suggest on this .... i need to trouble shoot on the issue urgently......
Sponsored Links
    #3  
Old 10-13-2008
incredible incredible is offline Forum Advisor  
Registered User
 
Join Date: May 2008
Last Activity: 24 August 2014, 5:15 AM EDT
Location: SINGAPORE.. The "FINE" City
Posts: 2,693
Thanks: 1
Thanked 19 Times in 19 Posts
At the first instance, you're using an invalid shell, provided /bin/false is inside the /etc/shells
user:x:8005:508::/export/home/user:/bin/false :/

whatever, can you post the outputs?
cat /etc/ssh/ssh_config
check if symbolic link exists between /bin -> /usr/bin

Last edited by incredible; 10-13-2008 at 10:11 AM..
    #4  
Old 10-13-2008
GIC1986 GIC1986 is offline
Registered User
 
Join Date: Sep 2008
Last Activity: 23 January 2014, 4:51 AM EST
Location: India Chennai
Posts: 41
Thanks: 0
Thanked 1 Time in 1 Post
Quote:
Originally Posted by incredible View Post
At the first instance, you're using an invalid shell, provided /bin/false is inside the /etc/shells
user:x:8005:508::/export/home/user:/bin/false :/

whatever, can you post the outputs?
cat /etc/ssh/ssh_config
check if symbolic link exists between /bin -> /usr/bin

# Copyright (c) 2001 by Sun Microsystems, Inc.
# All rights reserved.
#
# ident "@(#)ssh_config 1.2 01/06/06 "
#
# This file provides defaults for ssh(1).
# The values can be changed in per-user configuration files $HOME/.ssh/config
# or on the command line of ssh(1).
# Configuration data is parsed as follows:
# 1. command line options
# 2. user-specific file
# 3. system-wide file /etc/ssh/ssh_config
#
# Any configuration value is only changed the first time it is set.
# host-specific definitions should be at the beginning of the
# configuration file, and defaults at the end.
# Example (matches compiled in defaults):
#
# Host *
# ForwardAgent no
# ForwardX11 no
# PubkeyAuthentication yes
# PasswordAuthentication yes
# FallBackToRsh no
# UseRsh no
# BatchMode no
# CheckHostIP yes
# StrictHostKeyChecking ask
# EscapeChar ~
Sponsored Links
    #5  
Old 10-13-2008
incredible incredible is offline Forum Advisor  
Registered User
 
Join Date: May 2008
Last Activity: 24 August 2014, 5:15 AM EDT
Location: SINGAPORE.. The "FINE" City
Posts: 2,693
Thanks: 1
Thanked 19 Times in 19 Posts
Why were those lines commented out? And try adding/ changing those in bold.
# Host *
# ForwardAgent no
# ForwardX11 no
RhostsAuthentication no
RhostsRSAAuthentication yes
RSAAuthentication yes

# PubkeyAuthentication yes
# PasswordAuthentication yes
# FallBackToRsh no
# UseRsh no
# BatchMode no
# CheckHostIP yes
# StrictHostKeyChecking no
# EscapeChar ~
Port 22
Protocol 2,1
Sponsored Links
    #6  
Old 10-14-2008
GIC1986 GIC1986 is offline
Registered User
 
Join Date: Sep 2008
Last Activity: 23 January 2014, 4:51 AM EST
Location: India Chennai
Posts: 41
Thanks: 0
Thanked 1 Time in 1 Post
but the sftp was working for me with other user on the same machine ....

through port 22

only this user giving the prob.

i suspect about the user:x:8005:508::/export/home/user:/bin/false

but the it says

/bin/false disallows login with telnet/ssh it does not disallow ftp/sftp as you only run your shell when you direct login
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Exit Status smkremer Shell Programming and Scripting 2 03-28-2012 03:40 PM
Exit Status 126 - how to get rid of it glamo_2312 UNIX for Advanced & Expert Users 5 09-23-2009 12:37 AM
How to get the exit status yhacks Shell Programming and Scripting 1 05-19-2008 08:06 AM
Exit Status of SFTP uni1234 Shell Programming and Scripting 1 10-11-2007 02:03 PM
tar exit status thorndike UNIX for Dummies Questions & Answers 3 01-22-2002 03:39 PM



All times are GMT -4. The time now is 12:22 PM.