LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 06-19-2010, 06:10 AM   #1
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,546

Rep: Reputation: 50
Is there a sort of 2nd SSH daemon server, sort of JAILKIT, in the debian repositories


Hello,

I would like to install a jailkit, without using jailkit, but by using a package available from the debian repositories?

Is there some packages for doing such performance?
 
Old 06-19-2010, 08:40 PM   #2
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 68
You can try to setup a chroot environment or a jailed environment and run an SSH server from within.
 
Old 06-19-2010, 08:47 PM   #3
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,546

Original Poster
Rep: Reputation: 50
Quote:
Originally Posted by Mr-Bisquit View Post
You can try to setup a chroot environment or a jailed environment and run an SSH server from within.
well teh jailkit that is available nwow (not in repos testing I d say) is particularly tricky to configure.

Simply a second daemon of openssh on another port would be great, + having a way to specific which users are allowed or block from that 2nd ssh.
bit like proftpd:

Code:
default ~   user1,user2   #this jail also, simply
 
Old 06-19-2010, 11:11 PM   #4
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 68
You should have the first ssh daemon on another port. Port 22 is the standard and more attacks will be against it.
 
Old 06-20-2010, 01:53 AM   #5
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,546

Original Poster
Rep: Reputation: 50
Quote:
Originally Posted by Mr-Bisquit View Post
You should have the first ssh daemon on another port. Port 22 is the standard and more attacks will be against it.
If I duplicate the bin of SSH into /usr/bin , maybe I could run 2 daemons.
the problem is that the config_sshd would be same
 
Old 06-20-2010, 04:03 AM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,999
Blog Entries: 54

Rep: Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745
Quote:
Originally Posted by frenchn00b View Post
If I duplicate the bin of SSH into /usr/bin , maybe I could run 2 daemons.
the problem is that the config_sshd would be same
Duplicating binaries like that is not a SOP and mess up your system. It's also not necessary: the only thing you need is to 'umask 027; sed "s|^Port 22|Port 123456|g" /etc/ssh/sshd_config > /etc/ssh/sshd_config_123456; echo "alt-ssh 123456/tcp" >> /etc/services; echo "alt-ssh: 10.0.0." >> /etc/hosts.allow; iptables -A INPUT -p tcp -m tcp --dport 123456 -m state --state NEW -s 10.0.0.0/24 -j ACCEPT; sshd -f /etc/ssh/sshd_config_123456' to make it run on port TCP/123456, accessible to a 10.0.0.0/24 LAN.
 
  


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
Can I use GNU sort to sort one field in order, another in reverse? zombieite Linux - Newbie 4 04-27-2009 12:23 AM
php sort help - sort numerical descending then by alphabetical? RavenLX Programming 3 03-11-2009 08:35 AM
How do I do filtering in Perl (keep sort order and sort again by another means)? RavenLX Programming 9 12-19-2008 10:12 AM
selection sort compiles but does not sort the array as desired ganesha Programming 2 04-20-2008 07:44 AM
Is there a line limit with the sort utility? Trying to sort 130 million lines of text gruffy Linux - General 4 08-10-2006 08:40 PM


All times are GMT -5. The time now is 08:16 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration