Shell ?

Posted by Scoop187 on Sun 04 Dec 2005 08:53 AM — 7 posts, 26,554 views.

#0
I know what a shell is, but I was curious of how to grant access to it to another person.

Right now I use my codebase and run it on my laptop, and I do my lil' bit of programming/coding on it as well. I use local host and normally port 4000 to connect to it with Mushclient. (Registered, Love it and Thank you!)

When I get a few basic things set up I will be moving the codebase to my home server and will then be placing it on the internet 24/7 for other builders and a few coders to come in and help me.

I was curious as of how to grant access to shell for the coders? I use windows XP and Linksys Router, as well as Cygwin for compiling.

If someone could show me a guide or walk me through the basics It would be very much appreciated. I'm just a builder soon to be owner.. venturing into the coding.. boy am I confusing myself alot lately =)
Amended on Sun 04 Dec 2005 08:54 AM by Scoop187
USA #1
While I don't think that is possible (Cygwin doesn't have support for more users as far as I know), Samson says otherwise.

Quote:
If there is an ssh server package in Cygwin and it runs, then I see no reason why being able to connect to it wouldn't work. Provided port 22 isn't blocked by the system's firewall.


I really don't know anything more about it though.
Australia Forum Administrator #2
This seemed to work for me:

  • Open the Cygwin command window
  • Type: ssh-host-config


I answered "yes" to the questions, like this (my input in bold):


$ ssh-host-config
Overwrite existing /etc/ssh_config file? (yes/no) yes
Generating /etc/ssh_config file
Overwrite existing /etc/sshd_config file? (yes/no) yes
Privilege separation is set to yes by default since OpenSSH 3.3.
However, this requires a non-privileged account called 'sshd'.
For more info on privilege separation read /usr/share/doc/openssh/README.privsep
.

Should privilege separation be used? (yes/no) yes
Warning: The following function requires administrator privileges!
Should this script create a local user 'sshd' on this machine? (yes/no) yes
Generating /etc/sshd_config file
Added ssh to D:\WINNT\system32\drivers\etc\services
Added ssh to /etc/inetd.conf


Warning: The following functions require administrator privileges!

Do you want to install sshd as service?
(Say "no" if it's already installed as service) (yes/no) yes

Which value should the environment variable CYGWIN have when
sshd starts? It's recommended to set at least "ntsec" to be
able to change user context without password.
Default is "ntsec".  CYGWIN=ntsec

The service has been installed under LocalSystem account.
To start the service, call `net start sshd' or `cygrunsrv -S sshd'.

Host configuration finished. Have fun!



  • Then type: net start sshd


Then from another PC you can type: ssh <ip address>

You initially get a message about the host fingerprint, as this is the first time you connect. You say "yes" you are sure you want to connect. You shouldn't see this again.




For this to work you will need:

  • ssh and sshd installed for Cygwin
  • Your router, if any, to port forward incoming calls to your PC with the MUD on it

Amended on Tue 06 Dec 2005 04:33 AM by Nick Gammon
Australia Forum Administrator #3
I got help from this page, read it if things don't quite work for you:

http://ist.uwaterloo.ca/~kscully/CygwinSSHD_W2K3.html
#4
Awsome! So.. any of ya looking for some interesting coding work on the side? lol
#5
I dont see thos downloads under any of the categories in cygwin.
Australia Forum Administrator #6
Under "Net" category, called:

openssh: The OpenSSH server and client programs