Answer the question
In order to leave comments, you need to log in
Script when connecting to ssh with name output?
Is it possible to make a script, before authorization, that will report, like hello $user?
i tried but it just outputs the text.
#!/bin/bash
echo "hello $1"
Answer the question
In order to leave comments, you need to log in
scripts executed at session start are located in /etc/profile.d/
such a script /etc/profile.d/1uptime.sh displays some system parameters when logging in either via ssh or via the local shell.
plus ~/.profile plus ~/.bashrc - read and understand.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question