Re: [leaf-user] Bering uC 2.2b5 problems with WinSCP (Bering 1.2 is ok)

2004-08-01 Thread Axel B. Bregnsbo
> Axel B. Bregnsbo wrote:
> > Thanks for your help K.P. Now I am stuck again.
> >
> > My WinSCP connection times out when trying to connect to Bering uC
> > 2.2b5, but works fine when connecting to a Bering 1.2. SSH to the
Bering
> > uC 2.2b5 works fine. The successfull connection reports a
> > "Keyboard-interactive authentication refused" and succeeds using
SFTP.
> > The unsuccessful connection does not show this message, fails with
> > SFTP, falls back to SCP, and seems to get stuck with the 'lrcfg'
start
> > screen.
> >
> > Does anybody have some idea what goes wrong ?

> From: "Martin Hejl" <[EMAIL PROTECTED]>:
> Well, you could try to comment out the call to /usr/sbin/lrcfg from
> /root/.profile and see if that helps - I've seen interactive stuff in
> .profile do strange things to scp
>
> Martin
>

Yes, your advice helped. I can now successfully SCP to Bering uC 2.2b5.

I then got the error:
* Error looking up user groups.
* failed with return code 127 and error message
* .
This seems to be caused by Bering uC 2.2b5 not supporting the 'groups'
command. The error is avoided in WinSCP by disabling:
Environment > SCP > Lookup user groups

Inspecting the session.log file one also sees that WinSCP gets confused
by the delayed response of Bering shell STDERR error messages; those
marked by '!' in the log file. Guess this is a WinSCP problem.

Thanks for help,
Axel


* WinSCP <-> Bering uC 2.2b5 (error message communication problems)

> unset "LC_ALL" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:0
> unset "HUMAN_BLOCKS" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:0
. Looking up groups and users.
> groups ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:127
* (ECommand) Error looking up user groups.
* Command 'groups'
* failed with return code 127 and error message
* .
. Getting current directory name.
> pwd ; echo "WinSCP: this is end-of-file:$?"
! -sh: groups: not found
< /root
< WinSCP: this is end-of-file:0
* (ECommand) Error getting name of current remote directory.
* Command 'pwd'
* failed with return code 0 and error message
* -sh: groups: not found.
. Getting current directory name.
> pwd ; echo "WinSCP: this is end-of-file:$?"
< /root
< WinSCP: this is end-of-file:0
. Listing current directory.
> ls -la ; echo "WinSCP: this is end-of-file:$?"
< drwxr-x---2 root root   80 Aug  1 11:56 .
< drwxrwxrwt   16 root root  340 Aug  1 11:08 ..
< -rw-r--r--1 root root  209 Aug  1 11:16 .profile
< -rw-r--r--1 root root0 Aug  1 11:57 null
< WinSCP: this is end-of-file:0



---
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com

leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html


Re: [leaf-user] Bering uC 2.2b5 problems with WinSCP (Bering 1.2 is ok)

2004-07-31 Thread Martin Hejl
Hi Axel,
Axel B. Bregnsbo wrote:
Thanks for your help K.P. Now I am stuck again.
My WinSCP connection times out when trying to connect to Bering uC
2.2b5, but works fine when connecting to a Bering 1.2. SSH to the Bering
uC 2.2b5 works fine. The successfull connection reports a
"Keyboard-interactive authentication refused" and succeeds using SFTP.
The unsuccessful connection does not show this message, fails with
SFTP, falls back to SCP, and seems to get stuck with the 'lrcfg' start
screen.
Does anybody have some idea what goes wrong ?
Well, you could try to comment out the call to /usr/sbin/lrcfg from 
/root/.profile and see if that helps - I've seen interactive stuff in 
.profile do strange things to scp

Martin

---
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com

leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html


[leaf-user] Bering uC 2.2b5 problems with WinSCP (Bering 1.2 is ok)

2004-07-31 Thread Axel B. Bregnsbo
Hi There,

Thanks for your help K.P. Now I am stuck again.

My WinSCP connection times out when trying to connect to Bering uC
2.2b5, but works fine when connecting to a Bering 1.2. SSH to the Bering
uC 2.2b5 works fine. The successfull connection reports a
"Keyboard-interactive authentication refused" and succeeds using SFTP.
The unsuccessful connection does not show this message, fails with
SFTP, falls back to SCP, and seems to get stuck with the 'lrcfg' start
screen.

Does anybody have some idea what goes wrong ?

Below I have pasted the log file result; first from the unsuccesful
2.2b5, then a successfull 1.2 connection.

Kind regards
Axel Bregnsbo (downgraded-to-novice Bering user)

***
*   WinSCP -> Bering uC 2.2b5 (unsuccessful)
***
. --

. WinSCP Version 3.6.6 (Build 234) (OS 5.0.2195 Service Pack 4)
. Login time: 31. juli 2004 20:28:20
. --

. Session name: [EMAIL PROTECTED]
. Host name: 192.168.1.1 (Port: 22)
. User name: root (Password: No, Key file: No)
. Transfer Protocol: SFTP (SCP)
. SSH protocol version: 2; Compression: No
. Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. Ciphers: aes,blowfish,3des,WARN,des; Ssh2DES: No
. Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. SSH Bugs: -,-,-,-,-,-,-,-,
. Proxy: none
. Return code variable: Autodetect; Lookup user groups: Yes
. Shell: default, EOL: 0
. Local directory: default, Remote directory: home, Update: No, Cache:
Yes
. Cache directory changes: Yes, Permanent: Yes
. Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. Alias LS: No, Ign LS warn: Yes, Scp1 Comp: No
. --

. Looking up host "192.168.1.1"
. Connecting to 192.168.1.1 port 22
. Server version: SSH-2.0-dropbear_0.42
. We claim version: SSH-2.0-WinSCP-release-3.6.6
. Using SSH protocol version 2
. Doing Diffie-Hellman key exchange
. Host key fingerprint is:
. ssh-rsa 1040 a7:5f:89:2f:ce:3d:6a:40:e3:a1:37:ae:ab:3d:02:3d
. Initialised triple-DES client->server encryption
. Initialised triple-DES server->client encryption
! Using username "root".
. Session password prompt ([EMAIL PROTECTED]'s password: )
. Asking user for password.
. Sent password
. Access granted
. Opened channel for session
. Primary command failed; attempting fallback
. Started a shell/command
. --

. Using SCP protocol.
. Doing startup conversation with host.
. Skipping host startup message (if any).
> echo "WinSCP: this is end-of-file:0"
< Type in help if you are really lost
< 
< LEAF configuration menu
<  1 ) Network configuration
<  2 ) System configuration
<  3 ) Packages configuration
<  b) Back-up a package
<  h) Help
<   q) quit
<   

<  Selection: 
< LEAF configuration menu
<  1 ) Network configuration
<  2 ) System configuration
<  3 ) Packages configuration
<  b) Back-up a package
<  h) Help
<   q) quit
<   

. Waiting for data timed out, asking user what to do.
. Asking user:
. Host hasn't answered for 15 seconds.
.
. Wait for another 15 seconds? Pressing 'Abort' button will close
session. ()
. Attempt to close connection due to fatal exception:
* Terminated by user.
. Closing connection.
* (ESshFatal) Error skipping startup message. Your shell is probably
incompatible with the application (BASH is recommended).
* Terminated by user.

***
*   WinSCP -> Bering 1.2 (successful)
***
. --

. WinSCP Version 3.6.6 (Build 234) (OS 5.0.2195 Service Pack 4)
. Login time: 31. juli 2004 20:15:59
. --

. Session name: [EMAIL PROTECTED]
. Host name: 192.168.1.1 (Port: 22)
. User name: root (Password: No, Key file: No)
. Transfer Protocol: SFTP (SCP)
. SSH protocol version: 2; Compression: No
. Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. Ciphers: aes,blowfish,3des,WARN,des; Ssh2DES: No
. Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. SSH Bugs: -,-,-,-,-,-,-,-,
. Proxy: none
. Return code variable: Autodetect; Lookup user groups: Yes
. Shell: default, EOL: 0
. Local directory: default, Remote directory: home, Update: No, Cache:
Yes
. Cache directory changes: Yes, Permanent: Yes
. Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. Alias LS: No, Ign LS warn: Yes, Scp1 Comp: No
. -