Sshd_config file issue, not able to login, need urgent help.


 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Sshd_config file issue, not able to login, need urgent help.
# 1  
Old 02-23-2016
Sshd_config file issue, not able to login, need urgent help.

Hello all,

By mistake i edited sshd_config file and made passwordauthentication no , Now i don't have key to login.
Is there any way, i can revert the changes, I am not able to login to the box at well.
Need help.

Thanks,
saurau
# 2  
Old 02-23-2016
Hi,

Firstly is the box a production box, or do you have unrestricted access to the box i.e. can you shut it down. If you can the simplest way is bring it up in single user mode and regress the changes.

You could also boot the box from media mount up the file systems and edit the file.

Can you ftp or sftp onto the box with any kind of escalated privileges, where you could pull the config file off - edit locally and put back.

I'm sure that you now realise how important proper testing is in a situation like this.

Regards

Gull04
# 3  
Old 02-23-2016
Another option is to look at your backups. If they run in a way that will allow you to recover the file without logging on (i.e. it has a service you can call) then you might have that as an option. I had the same issue when someone directly edited /etc/sudoers and left it unusable and no-one knew the root password - because there was no need.


I hope that this may help,
Robin
# 4  
Old 04-06-2016
I would expect to start with physical access (console, ESX console etc.) to server since impacted is SSH config.
Log on console as a root, fix config + reload sshd.
This User Gave Thanks to brusell For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

URGENT Reading a file and assessing the syntax shell script URGENT

I am trying to write a shell script which takes an input file as an arguement in the terminal e.g. bash shellscriptname.sh input.txt. I would like for the file to be read line by line each time checking if the .txt file contains certain words or letters(validating the syntax). If the line being... (1 Reply)
Discussion started by: Gurdza32
1 Replies

2. UNIX for Advanced & Expert Users

OEL 6.3 :Slow login due to /etc/ssh/sshd_config configuration

Version: Oracle Enterprise Linux 6.3 Running on VMWare Workstation When I login to my Linux VM from putty, the third line prompting for password comes only after few seconds. login as: root Access denied root@192.168.0.235's password: ---> It takes around 5 seconds to get this prompt I... (1 Reply)
Discussion started by: John K
1 Replies

3. Linux

Urgent :Automount issue

Hi Team, I am trying to delete the clearcase view in linux box. But i cant get, because my hostname is not configure under the at net directory in root dir. Please advice on this. Thanks, Mani (2 Replies)
Discussion started by: Mani_apr08
2 Replies

4. Red Hat

Help needed in fixing port issue - Urgent

Hi, One of our web application is running in Linux and using apache web servers. Application is hosted in port 4080 (for soap requests) and port 9999, and its serving behind a vip and cname. Initially it was working fine in another server and recently (2 months back) we have moved to the new... (4 Replies)
Discussion started by: senor.ram
4 Replies

5. Shell Programming and Scripting

urgent help needed in telnet issue

Hi, Whenever i am trying to telnet to server i am getting frequent error Authorized Login: prtsrc's Password: /dev/pts/171: Password read timed out -- possible noise on port when i am rerunning the same it is working fine thanks, sam (2 Replies)
Discussion started by: sam99
2 Replies

6. Solaris

Urgent need help - issue sftp

hi experts, i have a problem with my sftp which install on sparc sun solaris os version 5.9, i have install this packages below on my server : libgcc-3.3-sol8-sparc-local openssl-0.9.8d-sol8-sparc-local zlib-1.2.3-sol8-sparc-local openssh-4.5p1-sol8-sparc-local and i... (2 Replies)
Discussion started by: bucci
2 Replies

7. Linux

URGENT :- Linux remote access... issue

Hi ! I have a linux machine( stand lone) in my office network. now, I have application on that machine ( web based) I'm not able to access that box.. using http://abc:4435/console I'm able to ping that box.. and also connect via "ssh" Pls.... help.. Its a production issue... ... (2 Replies)
Discussion started by: dashok.83
2 Replies

8. UNIX for Advanced & Expert Users

Last login<urgent>

how to find last login time of a user in faster way if wtmps size is too large?? (6 Replies)
Discussion started by: vishwaraj
6 Replies

9. UNIX and Linux Applications

Need Urgent help in this issue

Hi , In Unix, Is there is any difference between the environment path variable "path" and "PATH". When I set PATH I am unable to get binary but when I set path then the binary is visible what may be the issue ? Thanks in advance Bathri :confused: (1 Reply)
Discussion started by: bathri
1 Replies
Login or Register to Ask a Question