Giter Club home page Giter Club logo

Comments (14)

MarcJHuber avatar MarcJHuber commented on August 16, 2024

Hi Phil,

thanks, looks like a documentation error. "welcome message" instead of "prompt" should work, I've dropped the "prompt" keyword there.

Thanks,

Marc

from event-driven-servers.

MarcJHuber avatar MarcJHuber commented on August 16, 2024

Hi Phil,

sorry, "welcome banner", not "welcome message".

Thanks,

Marc

from event-driven-servers.

pleedom avatar pleedom commented on August 16, 2024

Many thanks Marc

I think SecureCRT might have been part of the problem as it was not displaying the the welcome banner correctly. Are you aware of any known issues with truncation of welcome banner text? Also is it possible to serve a custom password prompt?

Kind regards Phil

from event-driven-servers.

MarcJHuber avatar MarcJHuber commented on August 16, 2024

Hi Phil,

whether the welcome banner is displayed or not largely depends on the implementation. It may work, or the router drops it, or the SSH client does so. I'm not a SecureCRT user myself, I think both putty and openssh work.

Custom prompts have been on my to-do list for quite some time. I'll have another look at that later.

Best regards,

Marc

from event-driven-servers.

MarcJHuber avatar MarcJHuber commented on August 16, 2024

Hi Phil

the answer to "custom prompts" did just changes to "yes".

message PASSWORD = ...

Cheers,

Marc

from event-driven-servers.

pleedom avatar pleedom commented on August 16, 2024

from event-driven-servers.

pleedom avatar pleedom commented on August 16, 2024

Hi Marc,

I'm not sure which configuration context to place the message keyword in, I tried this ....

    host corporate {
        address = 0/0
        key = {{ key }}
        message PASSWORD = "Password: "
    }

and got this .....

Nov 28 12:34:13 rocky1 tac_plus-ng[7646]: Error /etc/tac_plus-ng/tac_plus-ng.cfg:62: Expected 'host', 'parent', 'authentication', 'permit', 'bug', 'pap', 'address', 'key', 'motd', 'welcome', 'reject', 'enable', 'anonymous-enable', 'augmented-enable', 'single-connection', 'debug', 'connection', 'context', 'rewrite' or 'script', but got 'message'

kind regards Phil

from event-driven-servers.

MarcJHuber avatar MarcJHuber commented on August 16, 2024

Hi Phil,

I've actually implemented this at realm (or default) level, but moving the functionality to host level might indeed be an option. I'll have a look at that.

Thanks,

Marc

from event-driven-servers.

MarcJHuber avatar MarcJHuber commented on August 16, 2024

Hi again,

the "message ..." directives should now work in host context.

Cheers,

Marc

from event-driven-servers.

pleedom avatar pleedom commented on August 16, 2024

from event-driven-servers.

pleedom avatar pleedom commented on August 16, 2024

Hi Marc,

Thanks for the explanation about context, I've tried the following in both default realm and hosts contexts and this is confirmed working for Putty and Rocky Linux ssh clients.

message PASSWORD = "Password"

I have a question about intended behaviour of this feature which relates to a trailing ": " being added to the prompt, is this needed?

Regards Phil

from event-driven-servers.

MarcJHuber avatar MarcJHuber commented on August 16, 2024

Hi Phil,

I originally thought that adding the trailing characters would be a good idea. The latest commit drops that idea.

Cheers,

Marc

from event-driven-servers.

pleedom avatar pleedom commented on August 16, 2024

Thanks Marc

That'll do nicely, consider this issue closed.

Regards Phil

from event-driven-servers.

MarcJHuber avatar MarcJHuber commented on August 16, 2024

Hi Phil,

great, I've been waiting for that, I don't like open issues ;-)

Thanks,

Marc

from event-driven-servers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.