I know that -t
option in ssh allocate pseudo-tty. I'm using -t
to "jump" to different directory on login, something like this:
ssh -t my-server "cd /path/to/my/directory; bash --login"
.
Why if I log in without it (normally) /etc/motd
is printed and with -t
it is not? I know I can cat /etc/motd
before cd
but wondering is there cleaner solution and WHY is happening like that at all.
ps: As You can imagine I want MOTD to be prited on login even if I use -t
.