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


[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
. 

[leaf-user] Bering uC 2.2b5 problems with tc.lrp

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

I installed tc.lrp (tc.version ss010824-9) on a Bering uClibc 2.2-beta5.
Typing 'tc' I get the error message:
tc: can't load library 'libm.so.0'

The 'libm' library is not present in my /lib directory. Somebody got any
idea what I have gotten wrong ?

Kind regards
Axel Bregnsbo (level-above-novice Bering user)



---
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] sftp gives /usr/bin/ssh: Permission denied

2003-12-22 Thread Axel B. Bregnsbo
Hi there,

I have problems making a sftp/scp from my LEAF Bering 1.2 to a local
host. Connecting from a sftp client on the host to router works fine.
When connecting from router (192.168.22.1) to host (192.168.22.3) I get
the error message shown below.

firewall: -root-
# sftp 192.168.22.3
Connecting to 192.168.22.3...
exec: /usr/bin/ssh: Permission denied

# sftp -o UsePriviledgedPort no 192.168.22.3
Connecting to 192.168.22.3...
exec: /usr/bin/ssh: Permission denied
Couldn't read packet: Connection reset by peer

I hope some of you can help me. I expect some trivial error, as I am
fairly new to Linux.

Kind regards
Axel B. Bregnsbo

Additional information:

1) ssh connection from the host to the router works fine. The host is
using Putty on a Windows machine.
2) sftp client connection FROM host TO router works fine.
2) issuing 'sftp' did not cause any packets to be transmitted by the
router. I ran a packet-sniffer on the link between 192.168.22.3 
192.168.22.1.
3) the /usr/bin/ssh directory is empty

# ls -ld ssh
drwxr-xr-x2 root root   40 Dec 20 21:54 ssh

# lrpkg -l
NameVersionDescription
===-==-=
=
initrd  V1.2   LEAF Bering initial filesystem
rootV1.2   Core LEAF Bering package
etc V1.2   LEAF Bering /etc files
local   V1.2   LEAF Bering local package
modules V1.2   Define  contain your LEAF Bering modules
iptables1.2.8  IP packet filter administration tools for
2.4.
pump0.8.14-2   DHCP/BOOTP client from Redhat
shorwall1.4.2  Shoreline Firewall (Shorewall)
ulogd   1.0The Netfilter Userspace Logging Daemon
dnscache1.05a  A fast  secure proxy DNS server
weblet  1.2.0  LEAF status via a small web server
dhcpd   2.0pl5 DHCP server for automatic IP assignment
libz1.1.4  zlib compression library. Needed for
openssh
sshd3.7.1p2 compil OpenSSH sshd daemon.
sftp3.7.1p2 compil OpenSSH sftp client  server programs.

# ps
  PID  Uid VmSize Stat Command
1 root764 Sinit [2]
2 rootS[keventd]
3 rootS[ksoftirqd_CPU0]
4 rootS[kswapd]
5 rootS[bdflush]
6 rootS[kupdated]
 3127 root816 S/sbin/syslogd -m 240
19671 root836 S/sbin/klogd
 5769 root   1744 S/usr/sbin/sshd
24789 root720 S/usr/sbin/watchdog
23329 root776 S/usr/sbin/inetd
15315 root860 S/usr/sbin/ulogd -d
 7766 root964 S/usr/sbin/dhcpd eth1
  695 dnscache   2044 S[dnscache]
19773 root812 S/usr/sbin/cron
11612 root848 S-sh
 9987 root952 S/sbin/getty 38400 tty2
 8480 root   4440 Ssshd: [EMAIL PROTECTED]
22634 root848 S-sh
32196 root   4364 Ssshd: [EMAIL PROTECTED]
13989 root840 S-sh
19070 root936 Rps



---
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click

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