• ssh/sftp

    From Amessyroom@VERT/TL-QWK to All on Thursday, October 03, 2024 23:43:44
    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
  • From Digital Man@VERT to Amessyroom on Thursday, October 03, 2024 23:07:14
    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
    ---
    � Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net
  • From nelgin@VERT/EOTLBBS to Amessyroom on Friday, October 04, 2024 01:11:08
    On Thu, 3 Oct 2024 23:43:44 -0400
    "Amessyroom" (VERT/TL-QWK) <VERT/TL-QWK![email protected]>
    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
  • From Amessyroom@VERT/TL-QWK to Digital Man on Friday, October 04, 2024 08:25:29
    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