• ssh/sftp

    From Amessyroom@1:103/705 to All on Thu Oct 3 23:43:44 2024
    I saw recently that there was a change, that seem to imply you did not have
    to enter a username when using ssh to a synchronet system, twice. I updated
    my code but it stills seems your prompted for it, and then still have to do Login and enter it again.

    Is there something you have to do to miss skip the 1st entry of user name when using ssh to a synchronet board?

    Should sftp work out of the box? I've added the flag in my configuration: Options = ALLOW_SSH | ALLOW_SFTP | SSH_ANYAUTH

    in my sbbs.ini; should this allow sftp to my server with user name ?

    I just get connection closed messages with sftp. ssh seems to work from server (Linux Rocky 9.4 -> BBS which is running on same system).

    Just interested in using sftp instead of ftp to get files to/from bbs.

    I have SSH SFTP enabled in scfg terminal server ssh settings.
    Authentication is set to any

    ...One reason I don't drink is that I want to know when I'm having a good tim --
    Amessyroom - Sysop
    toolazy.synchro.net:22 (ssh)
    toolazy.synchro.net:2323 (telnet)
    https://toolazy.synchro.net
    ---
    þ Synchronet þ Too Lazy BBS - toolazy.synchro.net:2323
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Amessyroom on Thu Oct 3 23:07:14 2024
    Re: ssh/sftp
    By: Amessyroom to All on Thu Oct 03 2024 11:43 pm

    I saw recently that there was a change, that seem to imply you did not have to enter a username when using ssh to a synchronet system, twice. I updated my code but it stills seems your prompted for it, and then still have to do Login and enter it again.

    Is there something you have to do to miss skip the 1st entry of user name when using ssh to a synchronet board?

    You don't normally have to enter a username twice. If you are, then most likely the username your SSH client is supplying doesn't match an existing user or something like that. Check the terminal server log output to see what's going on.

    The recemt change made in v3.20a was to allow for no-username to be supplied for systems that want to force a logon matrix and not use the SSH-supplied username.

    Should sftp work out of the box?

    Yes.

    I've added the flag in my configuration:
    Options = ALLOW_SSH | ALLOW_SFTP | SSH_ANYAUTH

    in my sbbs.ini; should this allow sftp to my server with user name ?

    Yes.

    I just get connection closed messages with sftp.

    What does the terminal sever log output report?
    --
    digital man (rob)

    Sling Blade quote #7:
    Karl: I don't reckon the Good Lord would send anybody like you to Hades.
    Norco, CA WX: 65.6øF, 84.0% humidity, 0 mph NW wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From nelgin@1:103/705 to Amessyroom on Fri Oct 4 01:11:08 2024
    On Thu, 3 Oct 2024 23:43:44 -0400
    "Amessyroom" (VERT/TL-QWK) <VERT/TL-QWK!Amessyroom@endofthelinebbs.com>
    wrote:

    I saw recently that there was a change, that seem to imply you did
    not have to enter a username when using ssh to a synchronet system,
    twice. I updated my code but it stills seems your prompted for it,
    and then still have to do Login and enter it again.

    Is there something you have to do to miss skip the 1st entry of user
    name when using ssh to a synchronet board?

    Should sftp work out of the box? I've added the flag in my
    configuration: Options = ALLOW_SSH | ALLOW_SFTP | SSH_ANYAUTH

    in my sbbs.ini; should this allow sftp to my server with user name ?

    I just get connection closed messages with sftp. ssh seems to work
    from server (Linux Rocky 9.4 -> BBS which is running on same system).

    Just interested in using sftp instead of ftp to get files to/from bbs.

    I have SSH SFTP enabled in scfg terminal server ssh settings.
    Authentication is set to any

    ...One reason I don't drink is that I want to know when I'm having a
    good tim

    I can ssh into my server just fine and not have to enter the password
    twice. I don't have SSH_ANYAUTH but I do have ALLOW_SSH, ALLOW_RLOGIN
    and ALLOW_SFTP. Probably a configuration error?
    --
    End Of The Line BBS - Plano, TX
    telnet endofthelinebbs.com 23
    ---
    þ Synchronet þ End Of The Line BBS - endofthelinebbs.com
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Amessyroom@1:103/705 to Digital Man on Fri Oct 4 08:25:28 2024
    Re: ssh/sftp
    By: Digital Man to Amessyroom on Thu Oct 03 2024 11:07 pm

    Re: ssh/sftp
    By: Amessyroom to All on Thu Oct 03 2024 11:43 pm
    You don't normally have to enter a username twice. If you are, then most likely the username your SSH client is supplying doesn't match an existing user or something like that. Check the terminal server log output to see what's going on.
    The recemt change made in v3.20a was to allow for no-username to be supplied for systems that want to force a logon matrix and not use the SSH-supplied username.
    I removed SSH_ANYAUTH and ssh seems to be working as expected.

    Should sftp work out of the box?

    Yes.

    I just get connection closed messages with sftp.

    What does the terminal sever log output report?
    Showed it was not enabled. But when I went to scfg it was enabled,
    but found Terminal Server was enabled "no". Don't know how that happened,
    as I was able to login with telnet with TS in that state. Weird.

    So this allowed me to login with sftp. But upon login, I was expecting
    to see files like with a ftp session. But I was placed in like a "home directory" that had my signature file present.

    I figured out the structure there is /files and /home/<user>. Didn't
    see that with ftp sessionn, so was confused.

    Thanks!
    --
    Amessyroom - Sysop
    toolazy.synchro.net:22 (ssh)
    toolazy.synchro.net:2323 (telnet)
    https://toolazy.synchro.net
    ---
    þ Synchronet þ Too Lazy BBS - toolazy.synchro.net:2323
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)