Displaying 2 results from an estimated 2 matches for "21t02".
Did you mean:
2102
2025 Apr 21
2
Setting variable in /etc/environment has no effect for ssh session
...UsePAM yes" in /etc/ssh/sshd_config.
After restart sshd service and ssh from 192.168.7.3 as below:
# ssh root at 192.168.7.4
# echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
And still didn't the expected PATH.
on 192.168.7.4,
# tail -f /var/log/auth.log
2025-04-21T02:54:21.449615+00:00 intel-x86-64 sshd-session[510]:
pam_unix(sshd:auth): user [root] has blank password; authenticated
without it
2025-04-21T02:54:21.468311+00:00 intel-x86-64 sshd-session[510]:
Accepted none for root from 192.168.7.3 port 58598 ssh2
2025-04-21T02:54:21.484910+00:00 intel-x86-64...
2025 Apr 19
1
Setting variable in /etc/environment has no effect for ssh session
On Sat, 19 Apr 2025 at 14:44, Damien Miller <djm at mindrot.org> wrote:
> On Thu, 17 Apr 2025, Yu, Mingli wrote:
> [...]
> > I'm using openssh 9.9p2 and have defined the below logic into
> /etc/pam.d/sshd.
> > session required pam_env.so
> >
> > But the environment variables defined in /etc/environment file are not
> > effective when login via ssh.