Sunteți pe pagina 1din 6

7/17/2015

Software&security

HowtoremotelyconnecttoLinuxmachinesfromWindows

Computergames

Lifetopics

Hillbillyphysics

Greatestsites

3Dart

Modelplanes

HowtoremotelyconnecttoLinuxmachinesfromWindows
Updated:December22,2008
Advertise!

Afriendofmineaskedmehowtodothis,soIdecidedtowriteatutorial.Ifyou'reusingboth
WindowsandLinuxonseveralcomputers,aneedmightariseforyoutoconnecttotheLinux
machinenowandthen.YourLinuxmachinemightservemanypurposes:itcouldbeaserver,
amediacenter(likeMythTV),abackupstoragearea,orjustanotherdesktop.Youmaywant
toconnecttothismachineorevencontrolit.Well,forsharing,wehaveSamba.
ConfiguringSambaisveryeasy.Ihavedemonstratedthisinseveralarticles.Youcanfind
detailedstepbystepinstructionsinthereadingsectionbelow.Now,forremotecontrol,we
havethistutorial.Let'sseehowwecanconfigureourLinuxboxtoberemotelycontrolled
fromWindows.
IwilldemonstratehowtotakecontroloveraLinuxmachineusingSSHandVNC.SSHstands
forSecureSHell,anetworkprotocolthatallowsyoutoexchangedatabetweentwo
connectednetworkdevicesusinganencryptedtunnel.Thetunnelisnotlimitedtojust
transferringdata.Youcanuseittocontrolthemachineontheotherend,forwardinsecure
applicationsthroughthetunnelandmore.VNCstandsforVirtualNetworkComputing,a
desktopsharingsystemthatallowsyoutocontrolothermachines.

Prerequisites

Wouldyouliketo
advertiseyour
product/siteon
Dedoimedo?
Readmore

Donateto
Dedoimedo!
Doyouwantto
helpmetakeearly
retirement?How
aboutdonating
somedineroto
Dedoimedo?
Readmore

Beforewebegin,Iwouldliketopointoutthatthepurposeofthistutorialistodemonstrate
howremoteconnectivityandcontrolcanbeachieved.Itisnotacomprehensivesecurity
guideintothepitfallsanddangersofopeningaporttoremoteconnectionsandtheintegrity
oftransmittedinformation.Thistutorialassumesasafenetworkwherebothendsstrive
towardamutualgoal.
IfyouplantodeployasetuplikethisovertheInternet,youmustbeawarethattherecould
bepeoplewhomighttrytobreakintoyoursystemandtakecontroloverit.Ortheymight
wanttosniffsensitivedatayouexchangeusingtheseprotocols.
Alocalareanetwork(LAN)setupbehindafirewallisonething.Aworldwideopensetupis
somethingelseentirely.
Attheveryminimum,theuseofSSHorVNCovertheInternetwillrequiretheuseof
firewallswithloggingenabled,mandatoryencryptionwithlongandfrequentlyrotatedkeys
andstrongpasswords,nonstandardports,alimitonthenumberofunsuccessfulattempts,a
timelimitbetweenfailedlogins,norootaccess,andpossiblyevenothersecurityprecautions.
Inoursetup,wewilltalkaboutacozyLANatyourhomeoranoffice,farfromthedangersof
theInternet.So,nowthatweknowwhatwe'reabouttodo,letusbegin,VNCfirst.

VNC
WewilldemonstrateusingUbuntu(8.10).UbuntucomeswiththeVNCsoftwarealready
http://www.dedoimedo.com/computers/remotewindowslinux.html

1/6

7/17/2015

HowtoremotelyconnecttoLinuxmachinesfromWindows

installed.Youonlyhavetoconfigureitforremoteaccess.Furthermore,Ubuntumakesthings
simplebyusingnofirewallinitsdefaultconfiguration,sinceitcomeswithnoopenports
andthus,theuseofafirewallisunnecessary.
UbuntuusestheVinoprogramforVNCconnectivity.YoucanpowerVinobygoingtoSystem
>Preferences>RemoteDesktop.ThiswillopentheconfigurationmenuforVino.
Now,weneedtocheckseveralboxes:AllowotheruserstoviewyourdesktopandAllow
otheruserstocontrolyourdesktop.Wealsowantsecurity,sowewillrequireapasswordand
aconfirmation.

UnderAdvanced,wecanfurtherconfiguretheconnection.Encryptionisstronglyencouraged.
Youmayalsowanttoconsideranonstandardport.

CheckthatyourVNCportisopennow.Youcanusenmaptodothat.It'sincludedinmost
distributionsorcanbeeasilydownloadedfromrepositories.

http://www.dedoimedo.com/computers/remotewindowslinux.html

2/6

7/17/2015

HowtoremotelyconnecttoLinuxmachinesfromWindows

Now,weneedtoconfiguretheWindowsmachine.WerequireaVNCprogramtoconnectto
ourLinuxbox.Therefore,downloadaVNCprogramandinstallit.Therearemanychoices,
butyoureasiestbestiseitherRealVNCorTightVNC.Onceyoulaunchtheprogram,specify
theaddressoftheremotemachine:

vncclient2

P.S.Pleasenotethatyourchoicesmaydiffer.Itdependshowyouwishtoconfigureyour
software.Inthiscase,Imadenoadjustmentsandjustfireduptheprogramwiththedefault
optionsset.OntheUbuntumachine,you'llbeaskedtoconfirmtheconnectionattempt:

AndherewehaveaLinuxboxcontrolledbyaWindowsmachine:

http://www.dedoimedo.com/computers/remotewindowslinux.html

3/6

7/17/2015

HowtoremotelyconnecttoLinuxmachinesfromWindows

Jobdone.Easypeasy.

SSH
Thistime,weneedtoinstallthesshpackageinUbuntu.Somedistributionswillhaveit
installed,otherswillhaveitintherepositories.Onceitisinstalled,eitherviaSynapticorthe
aptget(onthecommandline,sudoaptgetinstallssh),checkthattheSSHportisopen:

Thedefaultportis22.
Now,inWindows,installansshclientsoftware.AgoodchoiceisPuTTY.Itissimple,
lightweightandwillalsorunfromremovablemedialikeUSBdrives.
PuTTYisacommandlinetool.Openthecommandline(Run>cmd),navigatetothePuTTY
folderandrunPuTTYagainsttheremoteIPaddress,somethinglike:
http://www.dedoimedo.com/computers/remotewindowslinux.html

4/6

7/17/2015

HowtoremotelyconnecttoLinuxmachinesfromWindows

putty192.168.1.143
You'llbeaskedtoimportthekeyoftheremotemachine.Thisisasecurityprecaution,so
thatyoureallyknowyou'reconnectingtothecomputeryouwant.
Importkey

Authenticatewiththepassword:

Andyou'reloggedin:

Nowstartworking:
http://www.dedoimedo.com/computers/remotewindowslinux.html

5/6

7/17/2015

HowtoremotelyconnecttoLinuxmachinesfromWindows

Morereading
Andafewmorelinksyoumightlike:
InstallingPCLinuxOSFulltutorialPage4
SharingfoldersbetweenWindowsandLinux

Conclusion
ThetaskofestablishingaremoteconnectionwithLinuxmachinesisaverysimplething.The
entireprocedureshouldtakeyoulessthan5minutes.Ofcourse,ifyou'retryingtoachieve
thisinaninsecureenvironment,youshouldtakemanynecessarystepstomakesurethat
bothyourLinuxmachine,yourclientandalltheinformationyou'reabouttoexchangeare
safefromintrusion,snoopingorotherpotentialdangers.Thismeansstrongencryption,non
trivialpasswordsandseveralothertricks.
Inyourhomeenvironment,wherethetaskissomuchsimpler,therearesimpleandeasyto
usetoolsforthejob.IfyourLinuxmachineservesafileorprintingserver,amediacenteror
issimplylocatedbeyondthereachofyourlazyfingers,gainingcontroloverittakesvery
littleeffort.
Inthecaseofssh,youmayalsowanttouseremoteconnectivityifyou'reshortofanother
monitororjusttopracticeLinuxcommandline.Eitherway,it'ssimpleandfun.
Enjoy!

del.icio.us

stumble

Top

digg

Home

reddit

slashdot

Termsofuse

Contactme

About

Copyright@Dedoimedo.com20062015allrightsreserved

http://www.dedoimedo.com/computers/remotewindowslinux.html

6/6

S-ar putea să vă placă și