Customized ssh login message

Submitted by aknnn on Sat, 09/29/2018 - 17:59

Sometimes you may wan't to display customized welcome message when logging in to server via ssh.

I'm going to show you how you can do it with CentOS 7.

First open the file /etc/ssh/sshd_config and add this line to it:
PrintMotd no
This will disable the default message printed on login and let's you print your own.

Next you wan't to make your own customized message. This is done by creating a file in the folder named /etc/profile.d
It doesn't matter how you name the file, altought the extension must be .sh
I named mine login_message.sh

First line of this file must be:
#!/bin/bash

In the next line you can add an echo-command and a string to be printed on login:
echo "Welcome to your server"

Save the file and make it executable:
chmod +x login_message.sh

The last thing to do is restart your sshd service:
systemctl restart sshd

Next time you login to your ssh, the newly created message should be shown.

Comments

Submitted by betway119 (not verified) on Sun, 02/10/2019 - 17:52

Permalink

我们会誓死捍卫冠军,皇马会延续自己的足球,我不希望今天的结果延续下去,但是我希望今天积极的方面能够延续下去。
betway119 http://www.bjl7666.com/

Submitted by nike lebron shoes (not verified) on Sun, 02/10/2019 - 17:53

Permalink

Recently, the Fansided to knight main rotation player in the first two rounds of the playoffs, the performance of the Owen only C +, love there is only a B.
nike lebron shoes http://www.lebronshoes.us.com

Submitted by curry 3 shoes (not verified) on Sun, 02/10/2019 - 17:54

Permalink

Carey - Owen about injury of varese, said it happened out how knight players want to play games."I was about to enter a 5 on 5 game, but after three seconds, varese is injured
curry 3 shoes http://www.curry3shoes.com

Submitted by Adidas Sports (not verified) on Sun, 02/10/2019 - 17:54

Permalink

Draft of the same year on the bottom rookie will be what?In general the draft should be able to blow the other party, who would have thought them took Owen on the 60th pick small Thomas in the same year, he turned out to be in the position of the challenger?
Adidas Sports http://www.adidasclothing.us

Submitted by vibram (not verified) on Sun, 02/10/2019 - 17:55

Permalink

Recently, the Fansided to knight main rotation player in the first two rounds of the playoffs, the performance of the Owen only C +, love there is only a B.
vibram http://www.vibram.us.com

Submitted by nike kd 11 (not verified) on Sun, 02/10/2019 - 17:55

Permalink

The noises and stressful the playoffs."We are eager to match."Owen said.Knight should first game will be on Thursday in east, and before them
nike kd 11 http://www.kd11.org

Submitted by air jordan retro (not verified) on Sun, 02/10/2019 - 17:55

Permalink

Layup is a very basic basketball skills maybe everyone layup but there is a way of layup is not everyone that is wrong step layup.
air jordan retro http://www.jordanretro.us

Submitted by curry 4 (not verified) on Sun, 02/10/2019 - 17:56

Permalink

Owen said: "Cleveland need game."Indeed, they rested for too long.In green, and the wizards to after the tiebreak, the beginning of the knight's eastern conference finals first time has pushed the next Wednesday.
curry 4 http://www.curry4footlocker.com

Submitted by kyrie 4 confetti (not verified) on Sun, 02/10/2019 - 17:56

Permalink

"I don't think eastern conference finals will be a long war, knight's strength is too strong. The celtics nobody with lebron, they even Owen this level of star all have no, they are really no one can stop the knight.
kyrie 4 confetti http://www.kyrie4confetti.us

Submitted by kevin durant jersey (not verified) on Sun, 02/10/2019 - 17:57

Permalink

Owen said: "Cleveland need game."Indeed, they rested for too long.In green, and the wizards to after the tiebreak, the beginning of the knight's eastern conference finals first time has pushed the next Wednesday.
kevin durant jersey http://www.kevindurantjersey.us.com

Submitted by kd 11 (not verified) on Sun, 02/10/2019 - 17:57

Permalink

The NBA playoffs now for today, have determined the warriors in the western conference and will compete for a spot in the finals quota, knight still don't know who his opponent was.However, even in the face of the celtics or the wizards, presumably knight will be
kd 11 http://www.kd11.org

Submitted by adidas porsche shoes (not verified) on Sun, 02/10/2019 - 17:57

Permalink

According to The Fear of The Sword, The knight's point guard deron Williams is a fan of MMA (mixed), compared to The basketball game, deron prefer to watch The ultimate fighting championship.Deron Williams recently said in an interview, he retired from the NBA
adidas porsche shoes http://www.adidasporschedesign.com

Submitted by lebron soldier 10 (not verified) on Sun, 02/10/2019 - 17:58

Permalink

According to The Fear of The Sword, The knight's point guard deron Williams is a fan of MMA (mixed), compared to The basketball game, deron prefer to watch The ultimate fighting championship.Deron Williams recently said in an interview, he retired from the NBA
lebron soldier 10 http://www.lebronsoldier10.us.com

Submitted by lebron 14 (not verified) on Sun, 02/10/2019 - 17:59

Permalink

"I don't think eastern conference finals will be a long war, knight's strength is too strong. The celtics nobody with lebron, they even Owen this level of star all have no, they are really no one can stop the knight.
lebron 14 http://www.lebron-14.us

Submitted by curry 3 (not verified) on Sun, 02/10/2019 - 18:00

Permalink

Owen said: "Cleveland need game."Indeed, they rested for too long.In green, and the wizards to after the tiebreak, the beginning of the knight's eastern conference finals first time has pushed the next Wednesday.
curry 3 http://www.curry-3.com

Submitted by Norris (not verified) on Mon, 02/11/2019 - 01:46

Permalink

Good day! I could have sworn I've been to this blog before but after reading
through some of the post I realized it's new to me. Nonetheless, I'm definitely glad
I found it and I'll be book-marking and checking back frequently!

Also visit my website :: social.biword.Com

Submitted by Stephania (not verified) on Tue, 02/12/2019 - 13:25

Permalink

I'm really enjoying the design ɑnd layout of youг blog.
It's ɑ very easy on the eyes which mаkes іt mսch
more enjoyable for mе too ⅽome here and visit more often.
Diⅾ you hire out a designer tօ creatе yoᥙr theme?

Outstanding ѡork!

Taқe a l᧐ok at my webpage :: watch Velvet Buzzsaw full movie

Submitted by Luis (not verified) on Wed, 02/13/2019 - 12:36

Permalink

Fascinating blog! Is your theme custom made or did you download it from somewhere?
A theme like yours with a few simple adjustements would really make my blog
shine. Please let me know where you got your theme. Appreciate it

Also visit my website :: Judi Online (http://fabiwan.kenobi.free.fr)

Submitted by Sylvia (not verified) on Wed, 02/13/2019 - 18:06

Permalink

Can I just say what a comfort to discover someone that actually knows what they're talking about over the internet.
You actually understand how to bring an issue to light and make it important.
More and more people should look at this and understand this side of
the story. I can't believe you aren't more popular since you
certainly possess the gift.

Here is my web blog Judi Online (www.eastwill.org)

Submitted by Augusta (not verified) on Wed, 02/13/2019 - 21:14

Permalink

I love what you guys are up too. This type of clever work and reporting!
Keep up the superb works guys I've incorporated you guys to our blogroll.

Here is my blog post :: Agen Bola - Judson,

Submitted by Michal (not verified) on Thu, 02/14/2019 - 05:08

Permalink

I'm gone to inform my little brother, that he should also pay a quick
visit this web site on regular basis to take updated
from latest information.

Stop by my web-site :: Agen Bola

Submitted by Jesenia (not verified) on Thu, 02/14/2019 - 19:02

Permalink

Hello, i believe that i noticed you visited
my blog thus i got here to go back the favor?.I am attempting to to find issues to improve my web site!I suppose its adequate to use some of your concepts!!

My blog ... Agen Sbobet - Santos,

Submitted by Collette (not verified) on Thu, 02/14/2019 - 19:55

Permalink

Hello! I know this is kinda off topic however I'd figured I'd
ask. Would you be interested in exchanging links or
maybe guest authoring a blog article or vice-versa?
My blog addresses a lot of the same topics as yours and I feel we could greatly
benefit from each other. If you are interested
feel free to shoot me an e-mail. I look forward to hearing from you!
Terrific blog by the way!

Also visit my webpage Download Velvet Buzzsaw full movie

Submitted by Kerstin (not verified) on Fri, 02/15/2019 - 10:22

Permalink

Fantastic beat ! I would like to apprentice while you amend your web site, how could i subscribe for a blog web site?
The account helped me a acceptable deal. I had been a little
bit acquainted of this your broadcast offered bright clear concept

Also visit my webpage Download Velvet Buzzsaw full movie

Submitted by Bella (not verified) on Fri, 02/15/2019 - 10:56

Permalink

I am not sure the place you are getting your info, however good topic.
I must spend some time learning much more or
working out more. Thank you for fantastic information I used to be on the
lookout for this info for my mission.

my page - Taruhan Online - wcwpr.com -

Submitted by Hanna (not verified) on Fri, 02/15/2019 - 19:27

Permalink

I think this is one of the most significant information for me.
And i am glad reading your article. But want to remark on some general things, The web site style is perfect, the
articles is really nice : D. Good job, cheers

Also visit my page; Taruhan Online (www.zcfcia.cn)

Submitted by Luz (not verified) on Sat, 02/16/2019 - 06:35

Permalink

Definitely believe that which you said. Your favorite reason appeared to be
on the web the simplest thing to be aware of. I say to you, I definitely get annoyed while
people consider worries that they just do not know about.

You managed to hit the nail upon the top as well as defined
out the whole thing without having side effect
, people could take a signal. Will probably be back to get
more. Thanks

Take a look at my website Judi Terpercaya (Leonida)

Submitted by Julienne (not verified) on Sat, 02/16/2019 - 08:02

Permalink

Thank you, I've recently been searching for information about this subject for a while and yours is
the best I have found out so far. But, what concerning the bottom line?
Are you certain in regards to the supply?

Look at my webpage Judi Poker

Submitted by Candida (not verified) on Sat, 02/16/2019 - 09:42

Permalink

In case you are at house in the midst of the day or up late at evening, when most people who find themselves unemployed are watching
TV, you will see Montel Williams pop up in a industrial promoting his payday mortgage Money Mutual.

Here is my web-site :: payday Loans with bad credit

Submitted by Lanora (not verified) on Sat, 02/16/2019 - 10:15

Permalink

Sweet blog! I found it while searching on Yahoo News. Do you have any tips
on how to get listed in Yahoo News? I've been trying for a while but I never
seem to get there! Many thanks

Also visit my web blog: Taruhan Online - wcwpr.com,

Submitted by Philipp (not verified) on Sat, 02/16/2019 - 14:13

Permalink

I delight in, result in I discovered just what I was taking a look for.
You have ended my four day lengthy hunt! God Bless you man. Have a nice day.
Bye

My blog - Judi Terpercaya (Donnell)

Submitted by Chance (not verified) on Sat, 02/16/2019 - 16:33

Permalink

Having read this I believed it was really enlightening.
I appreciate you taking the time and effort
to put this informative article together. I once again find myself spending a lot of time both reading and leaving comments.
But so what, it was still worth it!

Here is my web site; Judi Terpercaya [Paulina]

Submitted by Clint (not verified) on Sat, 02/16/2019 - 17:23

Permalink

You are so interesting! I don't think I've truly read through
something like this before. So good to find somebody with a few original thoughts on this topic.
Really.. thanks for starting this up. This web
site is something that is needed on the web, someone with a bit
of originality!

Take a look at my web site; Agen Sbobet (Olive)

Add new comment