Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
5Activity
0 of .
Results for:
No results containing your search query
P. 1
Cygwin tuto

Cygwin tuto

Ratings: (0)|Views: 1,031|Likes:
Published by dheerajpant
Configuiring cygwin tut.
Configuiring cygwin tut.

More info:

Published by: dheerajpant on Nov 16, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

12/31/2013

pdf

text

original

 
Cygwin_WindowsXP 1 / 10
How to Tunnel Remote Desktop using SSH (Cygwin) forWindows XP (SP2)
The ssh server is an emulation of the
UNIX environment and OpenSSH 
for Windows, byRedhat, called cygwinThis manual covers:
Installation of Cygwin and SSH............................................................................................1Configuration of Variables....................................................................................................3Start and Stop sshd Services..................................................................................................4Setup passwd and group Files................................................................................................5Open TCP port 22..................................................................................................................5Test sshd Service...................................................................................................................7How to Update SSL / sshd.....................................................................................................8Using PuTTY to Start a Remote Desktop Connection..........................................................9
Installation of Cygwin and SSH
1.
 
Login Windows XP as Administrator or as a user with Administrator privilege;2.
 
Make sure the current admin/user has a
Windows password
set. If not, go to
ControlPanel
; click 
User Accounts
to create a password.3.
 
Just to be on the safe side, after you created a password, logoff and then log in again.4.
 
Create a folder
c:\cygwin
 5.
 
Download cygwin's setup.exe fromhttp://www.cygwin.com/ and save
setup.exe
in
c:\cygwin
 Note: Cygwin's
setup.exe
can be used to
add
or
delete
or
reinstall
cygwin packagesafter initial installation.6.
 
Double click 
c:\cygwin\setup.exe
to start the installation7.
 
If you are asked to select "Just Me" or "All Users", choose "All Users"8.
 
When it asks for "
Local Package Directory
", type
 c:\cygwin
 
 
Cygwin_WindowsXP 2 / 109.
 
Choose a download site that is "close" to you. (e.g. “cse.yzu.edu.tw”). When aselection screen comes up (you can resize the windows to see better), click the littleView button for "Full" view .a.
 
Find the package "
openssh
", click on the word "
skip
" so that an appears inColumn B, see picture below.b.
 
(Optional) find the package
tcp_wrappers
1
, click on the word "
skip
" so thatan appears in Column B.
Notes
: If you add "
tcp_wrapper
", you will most likely get "
ssh-exchange-identification: Connection closed by remote host 
" error.If you get this error, then edit the file
 /etc/hosts.allow
and add these two linesbefore the PARANOID line. (After you finish the installation.)
ALL: 127.0.0.1/32 : allowALL: [::1]/128: allow
.10.
 
Click 
Next
to start installing
cygwin
and
ssh
.(Size of the basic cygwin system is more than 50 Meg, this may take a while. If youencounter problem during the installation, repeat the above steps or select anotherdownload site.)
1
 
tcp_wrappers
provide host-based access control and add an additional layer of protection bydefining which hosts are allowed or not allowed to connect to your PC. You can edit"
 /etc/hosts.allow
" or “/etc/hosts.deny”.
 
Cygwin_WindowsXP 3 / 10
Configuration of Variables
1.
 
Right click 
My Computer
, and then select
Properties > Advanced tab >Environment Variables;
Click 
New
button to add a new entry to
System variables
:
variable name is
CYGWIN 
variable value is
ntsec tty
Note
:
ntsec
is to get a more UNIX-like permission structure based upon the securityfeatures of Windows NT,http://erdelynet.com/archive/ssh-l/2004-06/2571.htmlfor moreinformation.2.
 
Right click 
My Computer >
 
Properties >
 
Advanced >
 
Environment Variables
 Select the Path variable and click the
Edit
button, and then append
;c:\cygwin\bin 
tothe end of the existing variable string.3.
 
Open a cygwin window by double clicking the icon; a black screen pops open.Set permission to these files and folder, at the prompt sign, type
chmod +r /etc/passwdchmod +r /etc/groupchmod 755 /var
4.
 
To generate the DSA security keys, at the prompt sign, type
ssh-host-config -y
(It may take several minutes to generate the dsa security keys on a slower-endcomputer.)

Activity (5)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads
jmars liked this
arunvasudha1 liked this
raj2@raj liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->