LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-05-2011, 01:10 PM   #1
riderryuken
LQ Newbie
 
Registered: Jul 2009
Posts: 16

Rep: Reputation: 0
remote webserver and sshd_config file


I wanted to add a user to have permission to login to our webserver. Foolishly I did not back this file up. The only thing I changed was the last part of the file which was:

# override default of no subsystems
AllowUsers chris acosentino
Subsystem sftp /usr/libexec/openssh/sftp-server

to

# override default of no subsystems
AllowUsers acosentino techmaster
Subsystem sftp /usr/libexec/openssh/sftp-server

Now I'm still connected with that terminal, but any other attempt to get into the webserver from either a new terminal or from winscp results in:

ssh_exchange_identification: Connection closed by remote host

Please advise me as to what to do. If I lose connection to this last terminal I guess I'll be screwed.
 
Old 05-05-2011, 06:36 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
Can't you just change it back from that terminal window and restart sshd? From your description that's what you did to get it to this configuration? I'm not sure which distro you're running but as an example, the Slackware sshd script restarts the ssh daemon by killing the listener process, not the already connected sessions. Doing that leaves your current session connected for you to continue working.

Make sure you check my assumptions before trying this though... If you kill all your ssh sessions accidentally before updating the config file then it becomes more difficult.
 
Old 05-06-2011, 08:15 AM   #3
riderryuken
LQ Newbie
 
Registered: Jul 2009
Posts: 16

Original Poster
Rep: Reputation: 0
Apparently what happened is I must have tried to login 4 times with an incorrect login from the office (I don't remember doing so, I may have messed up the new login once or twice.) but somehow ended up in the deny hosts file.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sshd_config/ maas187 Linux - Security 7 04-22-2009 12:09 AM
File listing in webserver jaakkop Programming 3 12-17-2005 08:31 AM
How to run webserver using remote boot. cyto Linux - General 4 01-24-2005 07:20 PM
Setting up remote Linux webserver Ben Sytko Linux - Newbie 6 02-19-2004 03:21 PM
sshd_config eyt Linux - Newbie 2 02-19-2004 01:05 PM


All times are GMT -5. The time now is 12:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration