Wind River Support Network

HomeDefectsSCP6-420
Fixed

SCP6-420 : [SCP] sftp failed to log in after ospp setup -o

Created: Jun 9, 2014    Updated: Feb 11, 2019
Resolved Date: Jun 13, 2014
Found In Version: 6.0.0.8.SP27
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Userspace

Description

sftp can log in the system before ospp setup, after setup -o :
$ sftp -v test1@localhost
OpenSSH_6.2p2-FIPS, OpenSSL 1.0.1g-fips 7 Apr 2014
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 20: Applying options for *
debug1: Connecting to localhost [127.0.0.1] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_rsa-cert type -1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: identity file /root/.ssh/id_dsa-cert type -1
debug1: identity file /root/.ssh/id_ecdsa type -1
debug1: identity file /root/.ssh/id_ecdsa-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.2
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.2
debug1: match: OpenSSH_6.2 pat OpenSSH*
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-sha1 none
debug1: kex: client->server aes128-ctr hmac-sha1 none
debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ECDSA
c3:96:30:f0:7e:51:b1:3b:b2:fe:8f:6a:a3:b1:01:4b [MD5]
debug1: Host 'localhost' is known and matches the ECDSA host key.
debug1: Found key in /root/.ssh/known_hosts:1
debug1: ssh_ecdsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /root/.ssh/id_rsa
debug1: Trying private key: /root/.ssh/id_dsa
debug1: Trying private key: /root/.ssh/id_ecdsa
debug1: Next authentication method: keyboard-interactive
Password:
debug1: Authentication succeeded (keyboard-interactive).
Authenticated to localhost ([127.0.0.1]:22).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: Sending subsystem: sftp
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0
debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
Transferred: sent 2456, received 1200 bytes, in 0.0 seconds
Bytes per second: sent 95679.2, received 46748.8
debug1: Exit status 127
Connection closed 

Steps to Reproduce

1. build project
     $ configure --enable-board=intel-x86-64 --enable-kernel=secure
--enable-rootfs=secore-platform --with-template=feature/openssl-fips
     $ make fs
2. ospp setup
     # boot target and deploy openssh-sftp-6.2p2-r3.5.0.x86_64.rpm to it
     $ rpm -Uvh  openssh-sftp-6.2p2-r3.5.0.x86_64.rpm
     # reboot target with args 'selinux=1 enforcing=0 single'
     $ /sbin/ospp/setup -r
     # reboot target with args 'selinux=1 enforcing=1'
     # follow the prompts and add user test1
     $ /sbin/ospp/setup -o
     # reboot target with args 'selinux=1 enforcing=1'
3. run sftp
     $ passwd test1
     $ sftp test1@localhos

Other Downloads


Live chat
Online