Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUDs ➜ General ➜ Shell ?

Shell ?

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Scoop187   (19 posts)  Bio
Date Sun 04 Dec 2005 08:53 AM (UTC)

Amended on Sun 04 Dec 2005 08:54 AM (UTC) by Scoop187

Message
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 =)
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #1 on Sun 04 Dec 2005 03:39 PM (UTC)
Message
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.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #2 on Sun 04 Dec 2005 07:52 PM (UTC)

Amended on Tue 06 Dec 2005 04:33 AM (UTC) by Nick Gammon

Message
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


- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #3 on Sun 04 Dec 2005 07:58 PM (UTC)
Message
I got help from this page, read it if things don't quite work for you:

http://ist.uwaterloo.ca/~kscully/CygwinSSHD_W2K3.html

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Scoop187   (19 posts)  Bio
Date Reply #4 on Mon 05 Dec 2005 06:40 AM (UTC)
Message
Awsome! So.. any of ya looking for some interesting coding work on the side? lol
Top

Posted by Scoop187   (19 posts)  Bio
Date Reply #5 on Tue 06 Dec 2005 10:51 AM (UTC)
Message
I dont see thos downloads under any of the categories in cygwin.
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #6 on Tue 06 Dec 2005 07:44 PM (UTC)
Message
Under "Net" category, called:

openssh: The OpenSSH server and client programs

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


20,584 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.