Skip to content
  • About
  • Cart
  • Checkout
  • Contact
  • Cookie Policy
  • Copyright Policy
  • Daily Free Giveaways
  • Disclaimer/Privacy Policy
  • Games
    • ABC Wordgame
    • Adrenoid
    • Bongo Ball
    • BRU
    • Mystic Temple
    • Pac-Xon
    • Pacman
    • Pirate Gem
    • SokoZone
    • Space Invaders
    • Super Mario Crossover
    • Tetris
    • Treasure Chain
  • Get Me A Password
  • Giveaways and Freebies
  • My account
  • Newsletter
  • Shop
  • Sitemap
I Have A PC

Tech Tutorials, Linux & Windows Tips

  • Home
  • Tech
  • Apps
  • Linux
  • Windows
  • Misc
  • Digital Wellness
  • Sitemap
  • About
  • Contact
I Have A PC

Tech Tutorials, Linux & Windows Tips

How To Set A Warning Banner For SSH Logins

  • adminadmin
  • June 14, 2013
  • Apps, Linux, Linux Mint, Ubuntu

One of the earlier posts described how to install SSH server on Ubuntu. Now, it may be necessary to set a banner for legal as well as for clarity purposes that any user who logins remotely to this server can view and understand (similar to usage agreement when installing apps).

Here is how to set a warning banner that is displayed when anyone can see when they login via SSH :

1. First  open the sshd_config file by typing :

[cc lang=”bash”]

nano /etc/ssh/sshd_config

[/cc]

2. Next, find and remove the # next to the line :

[cc lang=”bash”]

#Banner /etc/issue.net

[/cc]

so that it looks like :

[cc lang=”bash”]

Banner /etc/issue.net

[/cc]

Save these changes to file and exit the text editor.

3. Now the banner file needs to be changed so that any appropriate message can be displayed, this file is located at /etc/issue.net, so edit it using any text editor like nano or vim :

[cc lang=”bash”]

nano /etc/issue.net

[/cc]

Editing the banner file for ssh logins

A sample and much more serious warning banner 🙂 can be something like this :

[cc lang=”bash”]

————-
W A R N I N G
————-
THIS IS A PRIVATE COMPUTER SYSTEM.
This computer system including all related equipment, network devices (specifically
including Internet access), are provided only for authorized use. All computer systems
may be monitored for all lawful purposes, including to ensure that their use is
authorized, for management of the system, to facilitate protection against unauthorized
access, and to verify security procedures, survivability and operational security.
Monitoring includes active attacks by authorized personnel and their entities to test or
verify the security of the system. During monitoring, information may be examined,
recorded, copied and used for authorized purposes. All information including personal
information, placed on or sent over this system may be monitored. Uses of this system,
authorized or unauthorized, constitutes consent to monitoring of this system.
Unauthorized use may subject you to criminal prosecution. Evidence of any such
unauthorized use collected during monitoring may be used for administrative, criminal or
other adverse action. Use of this system constitutes consent to monitoring for these
purposes.

[/cc]

4. Finally, for these changes to take effect, restart the ssh service :

[cc lang=”bash”]

sudo /etc/init.d/ssh restart

[/cc]

All done!

So next time when anyone tries to login via SSH, the banner will be displayed.

Warning banner during login

Cheers.

 

The logic of Dr.Sheldon Cooper
Previous Post The Logic Of Dr.Sheldon Cooper
Next Post When Gamers Love : Explained
Gamer love : explained
No results
  • Bluesky
  • Email
  • Facebook
  • Twitter

A List of Giveaways

Free Giveaways

Free E-Books

Linux Command Line Cheatsheet
Linux Command Line Basics
Linux Shell Scripting Primer

Archives

Related Posts

crontab basics 101

How to Automatically Update Linux Mint Using Bash and Cron

  • July 27, 2026
public vs private IPs 101

Public vs. Private IP Addresses: What’s the Difference? (Simple Guide)

  • July 22, 2026
10 useful linux devops commands

10 Useful Linux Commands that Every DevOps Should Know

  • July 15, 2026

Trending now

chrome 101
Google Chrome:Toggle On-Device Generative AI
crontab basics 101
How to Automatically Update Linux Mint Using Bash and Cron
df command in linux
Linux Command to Quickly Check Your Free Disk Space 
cbackup professional giveaway
CBackup Premium Giveaway: Cloud Backup and Storage
Copyright Policy Cookie Policy Disclaimer
Copyright © 2026 - WordPress Theme by CreativeThemes