Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2013
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    changing SSH password prompt

    Hi,

    I am trying to understand if i can modify and have ONLY the "password:" prompt to appear when ssh to my system.
    i tried to play with any env files (csh, tcsh, bash....) but i could not find where it might be configured.

    current:
    [root@msrv root]# ssh 0
    root@0's password:


    want it to be:
    [root@msrv root]# ssh 0
    password:

    current installed SSH rpms:

    openssh-3.6.1p2-33.30.14
    openssh-server-3.6.1p2-33.30.14
    openssh-clients-3.6.1p2-33.30.14


    thanks
    Y.




  2. #2
    Join Date
    May 2012
    Location
    West Byfleet, Surrey, UK
    Posts
    21
    Thanks
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Post

    Quote Originally Posted by yezrach View Post
    want it to be:
    [root@msrv root]# ssh 0
    password:
    The only way to do this the way you ask is via downloading and modifying the source.

    However you could just display a banner with the hostname in before authentication. If you edit the /etc/ssh/sshd_config file, find the "Banner" directive. Remove the comment, then either change it to some file of your choice, or go and edit /etc/issue.net - which is the default Banner file.

    Once you have the banner text set up, restart the ssh daemon. The banner will now be displayed before the password prompt when users try to ssh in.

    Is that any use to you?
    Last edited by hackinjack; 02-12-2013 at 02:19 PM.

  3. #3
    Join Date
    Feb 2013
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    the banner wont help here, i already tried that:

    # ssh 0
    Red Hat Enterprise Linux AS release 3 (Taroon Update 5)
    password:
    Kernel \r on an \m

    root@0's password: (it sill shows the next).

    is there a way to recompile the Password.pm file after modifying the relevant lines in it?

    yezrach

 

 

Similar Threads

  1. Replies: 1
    Last Post: 11-04-2012, 11:10 PM
  2. what controls the login prompt at bootup
    By hikmatic in forum General Linux
    Replies: 0
    Last Post: 09-29-2012, 08:37 PM
  3. Two problems after changing the kernel
    By colt in forum General Linux
    Replies: 0
    Last Post: 02-25-2012, 09:57 PM
  4. Replies: 0
    Last Post: 02-12-2012, 07:14 AM
  5. Replies: 5
    Last Post: 12-09-2011, 12:15 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
           








Check out Linux Central for Linux software and other goodies!





» Stats

Members: 3,540
Threads: 3,912
Posts: 9,423
Top Poster: Fred (1,486)
Welcome to our newest member, Kiuze

» Links



Powered by vBadvanced CMPS