Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jan 2002 20:37:29 -0800
From:      "Jeff Shevlen" <jshevlen@passedpawn.com>
To:        <freebsd-questions@FreeBSD.ORG>
Subject:   scp & Mindterm client
Message-ID:  <01a401c19e47$81a67140$b300a8c0@wenk>

next in thread | raw e-mail | index | archive | help
Anyone have any experience using Appgate's Mindterm SSH client to connect to
a FBSD 4.4 box?  The ssh part works as it should, but the SCP window for
file transfers isn't quite working for me.

The problem:
Mindterm's SCP window is not showing files on the server.

Not the problem:
The scp window shows the file system on the client machine (typically a
Win2000 box) no problem, but I suspect there is something wrong with my
settings on the FBSD machine, which is why I thought I'd try here (I've
asked at appgate already -- no response yet).

Points of note:
-- I can upload files to the server, I just can't download.
-- I can navigate the file system on the server using mindterm's extra SCP
window buttons, but I still can't *see* the files (you have to be there)
-- The server is running SSH Version OpenSSH_2.3.0

Other Stuff:
I'm a bit of a Newbie with FBSD and SSH, but I've made some attempts to
tighten up ssh, which have met with mixed results.  When I set either of the
following in sshd_config:
-PasswordAuthentication no
-AllowGroups sshuser
... mindterm can't authenticate.  Not sure if this is related or not.  I'm
also not sure how authentication works on a clear day, and in particular
cross-platform using Mindterm.

SSHD Debug output:
A session where I connected, opened the scp window , quit the scp window:

========negotiation with mindterm
Jan 13 22:57:59 williamt sshd[270]: Could not reverse map address
192.168.0.179.
Jan 13 22:57:59 williamt sshd[270]: debug1: userauth-request for user user
service ssh-connection method none
Jan 13 22:57:59 williamt sshd[270]: debug1: attempt #1
Jan 13 22:57:59 williamt sshd[270]: debug1: Starting up PAM with username
"user"
Jan 13 22:57:59 williamt sshd[270]: Failed none for user from 192.168.0.179
port 1273 ssh2
Jan 13 22:58:06 williamt sshd[270]: debug1: userauth-request for user user
service ssh-connection method password
Jan 13 22:58:06 williamt sshd[270]: debug1: attempt #2
Jan 13 22:58:06 williamt sshd[270]: debug1: PAM Password authentication
accepted for user "user"
Jan 13 22:58:06 williamt sshd[270]: debug1: PAM setting rhost to
"192.168.0.179"
Jan 13 22:58:06 williamt sshd[270]: Accepted password for user from
192.168.0.179 port 1273 ssh2
Jan 13 22:58:06 williamt sshd[270]: debug1: Entering interactive session for
SSH2.
Jan 13 22:58:06 williamt sshd[270]: debug1: server_init_dispatch_20
Jan 13 22:58:06 williamt sshd[270]: debug1: server_input_channel_open: ctype
session rchan 0 win 16384 max 8192
Jan 13 22:58:06 williamt sshd[270]: debug1: open session
Jan 13 22:58:06 williamt sshd[270]: debug1: channel 0: new [server-session]
Jan 13 22:58:06 williamt sshd[270]: debug1: session_new: init
Jan 13 22:58:06 williamt sshd[270]: debug1: session_new: session 0
Jan 13 22:58:06 williamt sshd[270]: debug1: session_open: channel 0
Jan 13 22:58:06 williamt sshd[270]: debug1: session_open: session 0: link
with channel 0
Jan 13 22:58:06 williamt sshd[270]: debug1: confirm session
Jan 13 22:58:06 williamt sshd[270]: debug1: session_by_channel: session 0
channel 0
Jan 13 22:58:06 williamt sshd[270]: debug1: session_input_channel_req:
session 0 channel 0 request pty-req reply 1
Jan 13 22:58:06 williamt sshd[270]: debug1: session_pty_req: session 0 alloc
/dev/ttyp0
Jan 13 22:58:06 williamt sshd[270]: debug1: session_by_channel: session 0
channel 0
Jan 13 22:58:06 williamt sshd[270]: debug1: session_input_channel_req:
session 0 channel 0 request shell reply 1
Jan 13 22:58:06 williamt sshd[270]: debug1: PAM setting tty to "/dev/ttyp0"
Jan 13 22:58:06 williamt sshd[270]: debug1: do_pam_session: euid 0, uid 0
Jan 13 22:58:06 williamt sshd[270]: debug1: PAM establishing creds
Jan 13 22:58:06 williamt sshd[270]: debug1: channel: 0: rfd 4 isatty
Jan 13 22:58:06 williamt sshd[271]: debug1: Setting controlling tty using
TIOCSCTTY.
Jan 13 22:58:06 williamt sshd[270]: debug1: fd 4 setting O_NONBLOCK
Jan 13 22:58:06 williamt sshd[270]: debug1: fd 3 IS O_NONBLOCK
Jan 13 22:58:06 williamt sshd[271]: debug1: krb5_cleanup_proc() called

Jan 13 22:57:58 williamt sshd[270]: debug1: done: KEX2.

=========opened scp session??
Jan 13 23:03:09 williamt sshd[270]: debug1: server_input_channel_open: ctype
session rchan 1 win 16384 max 8192
Jan 13 23:03:09 williamt sshd[270]: debug1: open session
Jan 13 23:03:09 williamt sshd[270]: debug1: channel 1: new [server-session]
Jan 13 23:03:09 williamt sshd[270]: debug1: session_new: session 1
Jan 13 23:03:09 williamt sshd[270]: debug1: session_open: channel 1
Jan 13 23:03:09 williamt sshd[270]: debug1: session_open: session 1: link
with channel 1
Jan 13 23:03:09 williamt sshd[270]: debug1: confirm session
Jan 13 23:03:09 williamt sshd[270]: debug1: session_by_channel: session 1
channel 1
Jan 13 23:03:09 williamt sshd[270]: debug1: session_input_channel_req:
session 1 channel 1 request shell reply 1
Jan 13 23:03:09 williamt sshd[270]: debug1: PAM establishing creds
Jan 13 23:03:09 williamt sshd[270]: debug1: fd 8 setting O_NONBLOCK
Jan 13 23:03:09 williamt sshd[270]: debug1: fd 8 IS O_NONBLOCK
Jan 13 23:03:09 williamt sshd[286]: debug1: krb5_cleanup_proc() called
Jan 13 23:03:09 williamt sshd[270]: debug1: fd 10 setting O_NONBLOCK

========closed scp session
Jan 13 23:05:27 williamt sshd[270]: debug1: channel 1: rcvd close
Jan 13 23:05:27 williamt sshd[270]: debug1: channel 1: output open -> drain
Jan 13 23:05:27 williamt sshd[270]: debug1: channel 1: input open -> closed
Jan 13 23:05:27 williamt sshd[270]: debug1: channel 1: close_read
Jan 13 23:05:27 williamt sshd[270]: debug1: channel 1: obuf empty
Jan 13 23:05:27 williamt sshd[270]: debug1: channel 1: output drain ->
closed
Jan 13 23:05:27 williamt sshd[270]: debug1: channel 1: close_write
Jan 13 23:05:27 williamt sshd[270]: debug1: Received SIGCHLD.
Jan 13 23:05:27 williamt sshd[270]: debug1: channel 1: send close
Jan 13 23:05:27 williamt sshd[270]: debug1: channel 1: full closed2
Jan 13 23:05:27 williamt sshd[270]: debug1: channel_free: channel 1: status:
The following connections are open:^M   #0 server-se
ssion (t4 r0 i1/0 o16/0 fd 4/3)^M   #1 server-session (t4 r1 i8/0 o128/0 fd
8/8)^M
Jan 13 23:05:27 williamt sshd[270]: debug1: channel_free: channel 1:
dettaching channel user
Jan 13 23:05:27 williamt sshd[270]: debug1: session_by_channel: session 1
channel 1
Jan 13 23:05:27 williamt sshd[270]: debug1: session_close_by_channel:
channel 1 kill 286
Jan 13 23:05:27 williamt sshd[270]: error: session_close_by_channel: kill
286: No such process
Jan 13 23:05:27 williamt sshd[270]: debug1: tvp!=NULL kid 1 mili 100
Jan 13 23:05:27 williamt sshd[270]: error: select: Bad file descriptor
Jan 13 23:05:27 williamt sshd[270]: debug1: session_by_pid: pid 286
Jan 13 23:05:27 williamt sshd[270]: debug1: session_free: session 1 pid 286

==========end debug

The 2 errors I get in /etc/messages are:
williamt sshd[270]: error: session_close_by_channel: kill 286: No such
process
williamt sshd[270]: error: select: Bad file descriptor

--thnx



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01a401c19e47$81a67140$b300a8c0>