LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 02-17-2009, 11:47 AM   #1
neriok
LQ Newbie
 
Registered: Jan 2008
Posts: 10

Rep: Reputation: 0
Lightbulb sshd problem


HI ALL

THERE IS A WEIRD PROBLEM, AFTER I CHANGE SSHD_CONF PARAMETERS, FOR EXAMPLE
Port 22 , if i chnage Port 2289 Or PermitRootLogin no , and restart sshd , but again i can acces from root in port 22.

# sshd -v
sshd: illegal option -- v
OpenSSH_4.5p1, OpenSSL 0.9.8b 04 May 2006


And i have instaled DenyHosts product .

Please can any one help me, what can i do , i tryed to uninstall bbut doesnt work i cant install and to reinstall it.

# rpm -e openssh openssh-server
error: Failed dependencies:
openssh = 4.7p1-4.fc8 is needed by (installed) openssh-clients-4.7p1-4.fc8.i386
openssh = 4.7p1-4.fc8 is needed by (installed) openssh-askpass-4.7p1-4.fc8.i386
openssh-server is needed by (installed) denyhosts-2.6-7.fc8.noarch
 
Old 02-17-2009, 12:13 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
You should restart sshd from init.d
Code:
/etc/init.d/sshd restart
sshd has no -v option
 
Old 02-17-2009, 12:27 PM   #3
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
/etc/init.d/sshd restart
 
Old 02-18-2009, 01:48 AM   #4
neriok
LQ Newbie
 
Registered: Jan 2008
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by frieza View Post
/etc/init.d/sshd restart
Yes my friends , i have restarted it and restart normaly , but after restart changes no efect , again i can acces with root user and in port 22.
 
Old 02-18-2009, 03:01 AM   #5
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
please post your ssh config
 
Old 02-18-2009, 06:29 AM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Also check if the server is being started with the -f </path/to/configfile> or -i options. Make sure the correct config file is being used. The -i option will start the server from xinetd, and configuration options there may make some changes.

What does lsof -c sshd indicate for the port.

Last edited by jschiwal; 02-18-2009 at 06:30 AM.
 
  


Reply



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
Starting sshd: /etc/init.d/sshd: line 113: /usr/sbin/sshd: Permission denied sumanc Linux - Server 5 03-28-2008 04:59 AM
sshd problem krock923 Linux - Software 2 05-05-2006 10:07 AM
FC4-Starting sshd: Privilege separation user sshd does not exist FAILED kiranherekar Fedora 5 12-29-2005 02:22 PM
Enabling SSH in mandrake 9.2 - sshd vs. sshd-xinetd DogTags Linux - Newbie 7 11-25-2003 12:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 10:34 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
Open Source Consulting | Domain Registration