LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-22-2010, 04:33 AM   #1
jonnytabpni
Member
 
Registered: Sep 2008
Posts: 68

Rep: Reputation: 16
Unauthenticated SSH


Hi Everyone,

Is it possible to somehow setup an ssh server that doesn't require a username,password or cert to login?

I wish to provide shell access to a console program, which will prompt for a username and password.

Encryption is essential though, and users must not be able to snoop in on each other

Thanks for any advice
 
Old 06-22-2010, 04:50 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
why would you want to do that?? just use a pre shared key properly.
 
Old 06-22-2010, 06:59 AM   #3
jonnytabpni
Member
 
Registered: Sep 2008
Posts: 68

Original Poster
Rep: Reputation: 16
Well I wish to offer console access to customers of mine, and dealing with keys may prove to be a hassle for them?

If it's not possible, if I were to give all customers the same key, would each connection be encrypted individually? (i.e. user A coudn't decrypt the payload of user B's connection)

Thanks

Last edited by jonnytabpni; 06-22-2010 at 07:01 AM.
 
Old 06-22-2010, 09:55 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Erm come again.... You're selling a service to customer on the basis that it has deliberately crippled security???
 
Old 06-22-2010, 11:13 AM   #5
tdnnash25
Member
 
Registered: Apr 2009
Posts: 63

Rep: Reputation: 15
Quote:
Originally Posted by acid_kewpie View Post
Erm come again.... You're selling a service to customer on the basis that it has deliberately crippled security???
ouch, I'm with acid_kewpie on this...security needs to matter.
 
Old 06-23-2010, 02:49 AM   #6
jonnytabpni
Member
 
Registered: Sep 2008
Posts: 68

Original Poster
Rep: Reputation: 16
Quote:
I wish to provide shell access to a console program, which will prompt for a username and password. Encryption is essential though, and users must not be able to snoop in on each other
If either of you read my question, you would actually see that security does matter to me, and this is my question on this thread. All I was simply intending on doing was offloading the authentication from SSH to a third party app. Look at my quote above.

Quote:
Erm come again.... You're selling a service to customer on the basis that it has deliberately crippled security???
No, I'm not. I'm asking here if what I was considering doing would criple security, and if it does I won't. I think you have answered this question in your sharp comment. Additionally, the users would still have to authenticate themselves with another program that launches upon login. This is a forum where people ask questions. And since I am new to this area, I think it is a perfectly reasonable thing to ask.

Anyway, the helpful people over at serverfault have answered this question for me, and I'll post the correct answer here for anybody who arrives here looking for a proper answer:

The way SSH works, is that the "encryption keys" are initally exchanged. However these keys themselves are exchanged in an encrypted fashion using the public/private key pair, so indeed every customer needs to have their own public/private key pair to ensure that they can't snoop in on each other.

Last edited by jonnytabpni; 06-23-2010 at 02:51 AM.
 
Old 06-23-2010, 04:29 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well yes they do need their own, unless you want to configure ssh in such a way as you use a single key for all user authentication, which is possible, but horrible.

So you're using preshared keys? Like I initially said? Super.
 
Old 06-23-2010, 06:03 AM   #8
jonnytabpni
Member
 
Registered: Sep 2008
Posts: 68

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by acid_kewpie View Post
well yes they do need their own, unless you want to configure ssh in such a way as you use a single key for all user authentication, which is possible, but horrible.

So you're using preshared keys? Like I initially said? Super.
Yup, sure am (Or at least going to - the system doesn't exsist yet).

On a side note, are you able to use a "forced command" with a username/password login? (i.e. not using PSK)? Let's say I want to bring up a menu when the user logs in, for example

Thanks
 
Old 06-23-2010, 10:05 AM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Yeah sure, the authentication mechanism and what you can do with ssh should be totally abstracted from each other.
 
Old 06-23-2010, 12:59 PM   #10
zirias
Member
 
Registered: Jun 2010
Posts: 361

Rep: Reputation: 59
No, forcing a command for a username/password-login is AFAIK not possible by SSH means, but you could use software like jailkit. But this sounds like overkill. Maybe you can write a little windows application implementing a tty on a "simple" ssl connection, e.g. by using putty's terminal code with some openssl..?
 
  


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
A strange issue with unauthenticated apt repositories TheOneKEA Debian 5 03-17-2011 11:05 AM
Configure postfix to reject all unauthenticated mail Tolingo Linux - Server 1 10-04-2009 05:09 AM
got lockd: unauthenticated request msg rastiffa Linux - Server 1 09-08-2009 11:35 AM
lockd unauthenticated request errors Ziggie Linux - Server 6 05-07-2008 09:53 AM
allow unauthenticated access to samba dlublink Linux - Networking 2 12-21-2006 09:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:36 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