You are not logged in.

#1 2020-07-24 12:41:24

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,568

agetty doesn't work for ssh /etc/issue banner

I have just set up ssh to access my desktop  from my laptop. The connection works OK but I'm hoping to improve on the login experience with a banner. I am just testing so far the default /etc/issue but the escape codes are not working. When I ssh from the client side, the banner still looks generic:

Arch Linux \r (\l)

What am I missing?

Offline

#2 2020-07-24 13:09:33

ondoho
Member
Registered: 2013-04-30
Posts: 692
Website

Re: agetty doesn't work for ssh /etc/issue banner

Are you saying it doesn't parse the backslashed variables at all, and displays them as they are?
I don't have an Arch server, but my Debian server does not seem to be displaying /etc/issue at all when I log into it with ssh - it displays /etc/issue.net, but then also something more.
You should check both your man pages and configuration for sshd, look for various Banner and PrintMotd options.

Offline

#3 2020-07-31 11:09:46

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,568

Re: agetty doesn't work for ssh /etc/issue banner

Just checked. Agetty doesn't function with ssh login but only with TTYs.

Offline

Board footer

Powered by FluxBB