MobaXterm Free Xserver and SSH Client - Documentation
-
Upload
kristen-fields -
Category
Documents
-
view
730 -
download
2
description
Transcript of MobaXterm Free Xserver and SSH Client - Documentation
-
9/4/2014 MobaXtermfreeXserverandSSHclientDocumentation
http://mobaxterm.mobatek.net/support/documentation.html#1 1/26
MobaXtermdocumentation(UnixutilitiesandXserveronGnu/Cygwin)
1.General
1.1.Presentation
1.2.Sessions
1.3.Unixliketerminalwithbashshell
1.4.Multitabenvironment
1.5.Builtingraphicaltools
2.Terminalfeatures
2.1.Windowsinteractions
opencommandcygpathcommand/drivesmountpath/registryvirtualfolder//mountpointExecutingnativeWindowsprogramsOtherusefulcommands
2.2.Networkutilities
RemotecomputingDISPLAYsettingsFiletransferNetworkmonitoring
2.3.MobaXterminterface
TabinterfaceSplitmodesDetachtabfeatureServicesSSHtunnels(portforwarding)OptionsdialogSessions
2.4.Otherutilities
EditorsMiscellaneousPlugins
3.Howto
1.4kLikeTweet 283865
Home Features Download/Buy Plugins Support
-
9/4/2014 MobaXtermfreeXserverandSSHclientDocumentation
http://mobaxterm.mobatek.net/support/documentation.html#1 2/26
3.1.Setupapasswordlesssshconnection
OnclientsideOnserverside
3.2.Setupapasswordlessrshconnection
Using/etc/hosts.equivUsing~/.rhosts
3.3.ExecuteashellscriptatMobaXtermstartup
UsingcommandlineparametersUsingbookmarks
4.FrequentlyAskedQuestions
4.1.General
WhatisthepurposeofMobaXterm?WhatarethemainadvantagesofusingMobaXtermoverotherSSH/SFTP/FTP/RDP/VNC/X11solutionsinWindows?
4.2.X11server
WhatisX11?WhywouldIneedanXserver?WhatdoesX11Forwardingmeans?HowdoesX11Forwardingwork?WhyismyremoteDISPLAYvariableconfiguredto"localhost:10.0"?IhaveanissuewithanX11remoteprogram(Java/X11/Motif)whichdoesnotacceptkeyboardinput:everytimeIpressakeyboardkey,nothingiswrittenonthetext
fieldHowdotheX11tabswithDWMwork?WhydoesMobaXtermincludethis"tiling"windowmanager?HowcanIsimplylaunchtheX11serverwithoutstartingthefullMobaXtermenvironment?How can I display a full remote desktop from a Unix/Linux server in MobaXterm (Gnome, KDE, FVWM, Openbox, Fluxbox, IceWM, XFCE, Blackbox, DWM,
Enlightenment,LXDE,...)?
4.3.SSHclient
WhatisSSH?HowcanIusepublicSSHkeyswithMobaXterm?WhydoestheSFTPtabnotpopupwhenIlaunchaSSHsession?/WhydoesMobaXtermnotpromptmeforsavingmySSHpassword?HowcanIperformaSSHconnectionthroughmySOCKSproxy?
4.4.RDPclient
WhatisRDP?HowcanIsendCtrl+Alt+DelthroughRDP(terminalservice)?
4.5.SSHtunnelling(a.k.a."Portforwarding")
Whatisthepurposeofthe"tunneling"tool?
4.6.MobaXtermterminal
MobaXtermdoesnotdisplaycorrectlysomespecialcharacters?Iencounterproblemswithmycountrycharset/encoding?IcannotrunaWindowsapplicationinsideMobaXterm.MyWindowsPATHisnottakenintoaccountinMobaXterm.IamusingalaptopandIdonothaveanymiddlebuttononmytrackpad.HowcanIpastetextintheterminal?
4.7.Advancedfeatures
-
9/4/2014 MobaXtermfreeXserverandSSHclientDocumentation
http://mobaxterm.mobatek.net/support/documentation.html#1 3/26
IwouldliketostartMobaXtermfromaBATCHscript.HowdoIuseMobaXterminsidemyscript?Whatarethecommandlineswitchesavailable?IwouldliketocreateanewpluginforMobaXterm.HowcanIdothat?Howtodisablethepenguinsscreensaver?Howtoremovethe"Games"menuandgamesentriesfromMobaXterm?Ilovethepenguinsscreensaver!CanIsubscribetoMobaXtermProfessionalEditionandkeepit?IwanttosavemyterminaloutputbutwhenIchoosethe"Logallterminalactivitytothefollowingdirectory",Igetahardlyreadablefilewithspecialcharactersinit.
4.8.Miscellaneoustroubleshooting
MobaXtermdoesnotrunonWindows2000:itsaysthatthegdiplus.dllismissing...Iwanttoaskforsomesupport.Canyouhelpme?Isentanemailbutyouneveranswered
1.General
1.1.Presentation
MobaXtermisatoolboxforworkinginaprofessionalcomputerenvironment:itcontainsacompletesetofremoteclients(SSH,Telnet,Rlogin,RDP,VNC,XDMCP,FTP,SFTP,Serial),anX11serverandseveralUnixcommandspackagedinamultitabenvironment.TheaimofMobaXtermistoallowprofessionaluserssuchassystemadministrators,developers,websitedesignersandallothercomputeruserstoperformremotetaskseasily.
MobaXtermmainwindow
-
9/4/2014 MobaXtermfreeXserverandSSHclientDocumentation
http://mobaxterm.mobatek.net/support/documentation.html#1 4/26
1.2.Sessions
MobaXtermallowsyoutolaunchremotesessions.Youjusthavetoclickonthe"Sessions"buttontostartanewsession.
The"Session"button
YoucanthenchoosetocreateanewSSH,Telnet,Rlogin,RDP,VNC,XDMCP,FTP,SFTPorSerialsession.Everysessionyoustartisautomaticallysaved.
-
9/4/2014 MobaXtermfreeXserverandSSHclientDocumentation
http://mobaxterm.mobatek.net/support/documentation.html#1 5/26
The"sessions"window
Youcanedit,delete,move, importorexport sessionsby rightclickingon them in the leftMobaXtermsidebar.Youcanalsocreateadesktopshortcut inorder toautomaticallylaunchasessionoragroupofsessionsatMobaXtermstartup.
Rightclickingonasessionfolderallowsyoutolaunchseveralsessionsatonce.Itcanbereallyusefulwhenyouoftenworkusingthesameenvironmentandthesameopenedsessions.
1.3.Unixliketerminalwithbashshell
MobaXtermfeaturesagreatterminalwithabashshellscriptwhichallowsuserstorunUnixcommandsasiftheywereloggedonaGNU/Linuxcomputer.ThereareseveralUnixcommandsavailable insidetheterminal:ssh,telnet,rlogin,rsh,rsync,wget,vim,corkscrew,httping,fdupes, iperf,mathomatic,xhost,xprop,xdpyinfo,xmodmap,xkill,Xorg...
IfyouneedanUnixcommandthatisnotincludedintoMobaXterm,youcanaskustodevelopaplugincontainingtherequiredprogram(s)
The terminal (basedonMinTTYandPuTTYbyAndyKoppeandSimonTatham)providesabunchofsettings thatcanbe tuned inorder tosuityourneeds (font,background/foregroundcolors,antialiasing,oldkeyboardscompatibility,...).Thedefaultterminalparameterscanbesetbyclickingonthe"Settings"button.
-
9/4/2014 MobaXtermfreeXserverandSSHclientDocumentation
http://mobaxterm.mobatek.net/support/documentation.html#1 6/26
The"settings"button
1.4.Multitabenvironment
Themultitabenvironmentallowsyoutoworkwithseveralterminalsorremotesessionsatthesametime.Youcantogglebetween"multitab"mode,"2terminals"modeand"4terminals"modebyclickingonthe"Split"button.
-
9/4/2014 MobaXtermfreeXserverandSSHclientDocumentation
http://mobaxterm.mobatek.net/support/documentation.html#1 7/26
The"Splitmode"button
MobaXtermbringsanotherreallyusefulmodecalled"Multiexecution"mode.Thismodeallowsyoutodisplayallyour terminalsat thesametimeandtowriteyourcommandstoallofthematonce:whenyoupressakeyboardkey,itwillwritethesamelettersonallyourterminalsatonce.Thismodecanbeactivatedbypressingthe"MultiExec"button.
The"MultiExecmode"button
-
9/4/2014 MobaXtermfreeXserverandSSHclientDocumentation
http://mobaxterm.mobatek.net/support/documentation.html#1 8/26
1.5.Builtingraphicaltools
MobaXterm comes with useful Unix commandline utilities, but also builtin graphical tools such as a fast picture viewer, a developers text editor, a file/foldercomparisontool,aportsanalyzerandapacketcapturetool.ThefeaturewhichisinouropinionthemostusefulmaybethegraphicalSFTPbrowser:whenyoulogtoaremoteserverusingSSH,agraphicalSFTPbrowserpopsuponintheleftsidebarallowingyoutodraganddropfilesdirectlyfromortotheremoteserverusingasecureSFTPconnection.
In theSFTPsidebrowser,youcandoubleclickona remote file inorder toedit itdirectlyusingyour favoriteprogram.Yourchangeswillbesaved to theremoteserverautomatically!
2.Terminalfeatures
2.1.Windowsinteractions
opencommand
Thiscommandallowsyoutoopenyourlocalfiles.ThiscommandwillopenyourdocumentsusingtheWindowsdefaultassociationforyourdocumenttype.
openhttp://www.google.comopenMyDocuments/MyWork.pdf
Youcanopenfiles,directoriesorURLdirectlyfromtheterminalbysimplyCtrl+clickingonthem.
cygpathcommand
Thiscommandallowsyoutoworkwithdos/unixpaths.YoucanobtaintheDospathfromagivenUnixpathandviceversa.YoucanalsolistyourcomputerpathsliketheWindows,System,Desktop,ProfilesandStartMenupaths.
echo"/binPATH=$(cygpathw/bin)"echo"SystemPATH=$(cygpathuS)"
/drivesmountpath
Thisdirectorycontainsamountpointforeachdriveofyourcomputer.Youcanforexamplebrowseyoursystemdrivebycdto/drives/c/
-
9/4/2014 MobaXtermfreeXserverandSSHclientDocumentation
http://mobaxterm.mobatek.net/support/documentation.html#1 9/26
Thisdirectorycontainsamountpointforeachdriveofyourcomputer.Youcanforexamplebrowseyoursystemdrivebycdto/drives/c/
cat/drives/c/Windows/win.iniPicView/drives/d/MyPhotos/Photo36.jpg
/registryvirtualfolder
Thisfolderisavirtualdirectorycontainingyourregistrykeysandvalues.Youcanopenandreadaregistrykeybydoingasimple"cat"ofthesevirtualfiles.
cat/registry/HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/DevicePathcat"/registry/HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/Explorer/ShellFolders/CommonPictures"
//mountpoint
Youcanalsobrowsecomputersfromyournetworkneighborhoodbytyping//
PicView//server1/share1/Photo36.jpgedit//server2/Documents/program.c
ExecutingnativeWindowsprograms
YoucanexecutenativeWindowsprogramsfromMobaXtermasyouwouldina"cmd"console.
ipconfig/allnetshcinterfacedumpregeditnetusercalcnotepad
Otherusefulcommands
There are several other useful commands for interacting with Windows, like editrights, shutdown, regtool, ps, passwd, MobaControl, mkshortcut, MobaSwInfo,MobaHwInfo,MobaTaskList,MobaKillTask,MobaControl[...]
2.2.Networkutilities
Remotecomputing
MobaXtermincludessomeusefulcommandlineclientsforexecutingcommandsonremotecomputers:.ssh(utilitytoaccessshellaccountsusingasecurecryptedconnection).telnet(usefultologintoremotesystemhosts).rlogin(sameaimastelnetbutusingadifferentprotocol).rsh(usefulforsendingcommandsonremotecomputers,especiallyusingthepasswordlessfeature)Do not forget that you can bookmark your connections using the bookmarks feature (see the corresponding section formore information). You can also set uppasswordlessconnectionswithrshorssh,thereisalsoacorrespondingsectiontothisfeature.
-
9/4/2014 MobaXtermfreeXserverandSSHclientDocumentation
http://mobaxterm.mobatek.net/support/documentation.html#1 10/26
DISPLAYsettings
MobaXtermincludesanXserversothatitcandisplayX11basedgraphicalprograms.Bydefault,anXserver isstartedatMobaXtermstartup.YourDISPLAYenvironmentvariableisautomaticallysetandit iswritteninyourterminalstartupmessage.WhenyouusearemotecomputingclienttoconnecttoaUnixcomputer,youcanexportyourDISPLAYtoyourlocalWindowsdesktopthankstoMobaXterm.WhenyouuseaSSHconnection,iftheremoteserversupportsX11Forwarding,yourDISPLAYisautomaticallysetanditwillbesentthroughtheSSHconnectiontoyourWindowsdesktop.
Withthisicon,youcanmonitortheXserverstate
telnetremoteserver1exportDISPLAY=localcomputer1:0.0neditexitsshlrootremoteserver1nedit
Filetransfer
MobaXtermincludessomeusefulclientsfortransferringfiles.ftp(FileTransfertProtocol).sftp/scp(FileTransfertusingasecurecryptedSSHconnection).rcp(Copyfilesto/fromremotecomputersusingthershprotocol).wget(downloadfilesthroughhttp/ftpprotocolwithenhancedsettings).rsync(synchronizedirectoriesthroughanetworkwithincrementalcapabilitiesandenhancedoptions)
scp/drives/c/Photo36.jpgroot@server1:/tmp/
-
9/4/2014 MobaXtermfreeXserverandSSHclientDocumentation
http://mobaxterm.mobatek.net/support/documentation.html#1 11/26
Networkmonitoring
MobaXtermincludes2usefulutilitiesformonitoringyournetwork:.TCPCapture(allowsyoutocapturenetworkpackets).MobaListPorts(allowsyoutolistallopenportswiththeircurrentstate).httping(monitoryourwebserver).iperf(monitortheavailablebandwidthonyournetwork)
2.3.MobaXterminterface
Tabinterface
MobaXtermcanstartseveralindependentterminalsthankstoatabbasedinterface.Usetheappropriatebuttontocreatenewtabs,closeexistingtabs,cyclingthroughtabsorrenametabs.
Splitmodes
MobaXtermallowsyoutodisplaysometerminalsinthesameWindowjustasyouwoulddousingthe"screen"utility.Youcandisplay2terminalsinhorizontalorverticalmode,oreven4terminalsinthesameWindow
The"Splitmode"button
Detachtabfeature
MobaXtermallowsyoutodetachtabsinordertodisplaytheminaseparatewindow.Youcandetach,reattachtabsorgofullscreenusingtherightclickmenuonyour
tab.
-
9/4/2014 MobaXtermfreeXserverandSSHclientDocumentation
http://mobaxterm.mobatek.net/support/documentation.html#1 12/26
tab.
Services
MobaXtermallowsyoutolaunchsomelightdaemons(TFTP,HTTP,FTP,SSH/SFTP,TELNET)fromthemaininterface.Youcanmanagethesedaemonsbyclickingontheappropriatebuttonfromthetoptoolbar.
The"Services"button
SSHtunnels(portforwarding)
MobaXtermallowsyoutocreatesomeSSHtunnels(a.k.a."portforwarding")withaniceandintuitiveinterface:youcanmanagetheseSSHtunnelsbyclickingontheappropriatebuttonfromthetoptoolbar.
-
9/4/2014 MobaXtermfreeXserverandSSHclientDocumentation
http://mobaxterm.mobatek.net/support/documentation.html#1 13/26
The"Tunneling"button
Optionsdialog
Youcanedityouroptionsusingthecorrespondingbuttonfromthetoptoolbar.YouroptionswillbesavedtoanINIfile.Youcanselectapersistenthomedirectoryforkeepingyour filesandparameters insteadofhavingyourhomedirectory ina temporary folder.Youcanalsoselect the terminal fonts, colors, skin, transparency,keyboardshortcuts,specifyafontserver,etc...
-
9/4/2014 MobaXtermfreeXserverandSSHclientDocumentation
http://mobaxterm.mobatek.net/support/documentation.html#1 14/26
The"Settings"button
Thesettingsdialog
Sessions
Youcanstoreyourconnectionsettings inbookmarks thatarestored inyour INI file.Sessionscanbeaccessedeasily through thecorrespondingmenu in the toptoolbarorintheleftsidebar,butyoucanalsocreateadesktopshortcuttoeachsessioninordertolaunchthemeasily.
-
9/4/2014 MobaXtermfreeXserverandSSHclientDocumentation
http://mobaxterm.mobatek.net/support/documentation.html#1 15/26
The"sessions"button
The"sessions"window
-
9/4/2014 MobaXtermfreeXserverandSSHclientDocumentation
http://mobaxterm.mobatek.net/support/documentation.html#1 16/26
2.4.Otherutilities
Editors
MobaXtermincludeseverythingyouneedtoedittextfiles:vioncommandline,neditforagraphicaleditororMobaTextEditorwhichisalightbutpowerfuleditorfordeveloperswithtextdiffutilities.
Miscellaneous
.MobaPictureViewer(Displaypicturesinfullscreenwithzoomfeatures)
.MobaTextDiff(Diffutilityfortextfiles)
.MobaFoldersDiff(Diffutilityforfolders)
.fdupes(Findanderaseduplicatefiles)
.mathomatic(computeralgebrasystem)
Plugins
Some commands can be added to MobaXterm thanks to the use of plugins. You can download some readytouse plugins athttp://mobaxterm.mobatek.net/download/plugins.html.
3.Howto
3.1.Setupapasswordlesssshconnection
YoucanconnecttoanSSHserverwithoutsupplyinganypassword:thisisusefulifyouwanttorunshellscriptsthatarenotinteractive.Thiscanbedonein2steps:
Onclientside
Youwillhavetogenerateapublicrsakeyontheclient.Thiscanbedonebytyping
sshkeygentrsaN''qf~/.ssh/id_rsa
Onserverside
Copythefilethathasbeengeneratedontheclient(".ssh/id_rsa.pub")tothe~/.ssh/directoryoftheserverandrenameitto"authorized_keys".
-
9/4/2014 MobaXtermfreeXserverandSSHclientDocumentation
http://mobaxterm.mobatek.net/support/documentation.html#1 17/26
scp.ssh/id_rsa.pubuser1@server1:.ssh/authorized_keys
3.2.Setupapasswordlessrshconnection
YoucanconnecttoanRSHserverwithoutsupplyinganypassword:thisisusefulifyouwanttorunshellscriptsthatarenotinteractive.Thiscanbedonein1step:
Using/etc/hosts.equiv
Editthe/etc/hosts.equivfileonserverside:youcanspecifyinthisfiletheauthorizedusersthatwillbeabletoconnecttotheserverwithoutsupplyinganypassword.Thefilesyntaxis:
Using~/.rhosts
Edit the ~/.rhosts file on server side: you can specify in this file the authorized users thatwill be able to connect to the server using the current accountwithoutsupplyinganypassword.Thefilesyntaxis:
3.3.ExecuteashellscriptatMobaXtermstartup
Usingcommandlineparameters
Youcaneditashellscript(becareful,ithastobeinUnixandnotDosformat)andrunitatMobaXtermstartup.YoujusthavetolaunchMobaXtermwiththefollowingcommandline:
MobaXterm.exe
MobaXtermalsousessomeinternalcommandlineparametersthatcanbeusedbyadvancedusersinordertointegrateMobaXtermintheirownenvironment:
MobaXterm.exeexec""
ThiscommandcanbeusedtostartanewinstanceofMobaXtermandimmediatelyexecuteagivenMobaXtermcommand
MobaXterm.exenewtab[""]
Thiscommandcanbeused tostartanewtab insidearunning instanceofMobaXterm(orstartanew instanceofMobaXterm ifnoother instance is running)andimmediatelyexecuteagivenMobaXtermcommand
MobaXterm.exebookmark""
Thiscommandcanbeusedtostartabookmarkbyspecifyingitsname.(Note:thisonlyworkfor1stlevelbookmarks:bookmarksfromsubfolderscannotbeinvoked
-
9/4/2014 MobaXtermfreeXserverandSSHclientDocumentation
http://mobaxterm.mobatek.net/support/documentation.html#1 18/26
Thiscommandcanbeusedtostartabookmarkbyspecifyingitsname.(Note:thisonlyworkfor1stlevelbookmarks:bookmarksfromsubfolderscannotbeinvokedbythiscommand)
MobaXterm.exerunmacro""
Thiscommandcanbeusedtostartamacrobyspecifyingitsname.
MobaXterm.exeopenfolder""
ThiscommandcanbeusedtostartMobaXterminthespecifiedfolder
MobaXterm.exehideterm
ThiscommandcanbeusedtostartMobaXtermthatisimmediatelyminimizedintothesystemtray
MobaXterm.exeexitwhendone
ThiscommandcanbeusedtoexitMobaXtermwhenthegivenactionisfinished.Thisparametershouldbecombinedwithbookmarkorexec
MobaXterm.exei""
ThiscommandcanbeusedtospecifyapathforMobaXtermconfigurationfile(MobaXterm.ini)
MobaXterm.exelog
Thiscommandcanbeusedtowritedownsomedebuginformationinalogfile
MobaXterm.exeinstallshellext
ThiscommandcanbeusedtoinstalltherightclickcontextmenuinWindowsexplorer
MobaXterm.exeinstallprotohandler
ThiscommandcanbeusedtoinstalltheURLprotocolhandler,inorderforMobaXtermtobeabletoexecutesessionsfromHTMLpages
MobaXterm.execonfig
ThiscommandcanbeusedtostartMobaXtermconfigurationwindow
MobaXterm.exeshortcuts
ThiscommandcanbeusedtostartMobaXtermkeyboardshortcutsconfigurationwindow
MobaXterm.exedoc
ThiscommandcanbeusedtostartMobaXtermdocumentation
MobaXterm.exepicview
ThiscommandcanbeusedtostartMobaXtermembeddedpictureviewerprogram
MobaXterm.exeedit""
ThiscommandcanbeusedtostartMobaXtermembeddedtexteditor(MobaTextEditor)
MobaXterm.execompfiles""""
ThiscommandcanbeusedtostartMobaXtermembeddeddifftool
-
9/4/2014 MobaXtermfreeXserverandSSHclientDocumentation
http://mobaxterm.mobatek.net/support/documentation.html#1 19/26
ThiscommandcanbeusedtostartMobaXtermembeddeddifftool
MobaXterm.execompfolders
ThiscommandcanbeusedtostartMobaXtermembeddedfoldersdifftool
MobaXterm.exeportforwarding
ThiscommandcanbeusedtostartMobaXtermembeddedportforwardingtool
Usingbookmarks
Createanewbookmark,selectthe"Customshellscript"optioninthedropdownmenuandedityourshellscript.Youcanthenclickonyourbookmarkandchoosetocreateadesktopshortcuttothisbookmark.
4.FrequentlyAskedQuestions
4.1.General
WhatisthepurposeofMobaXterm?
MobaXtermisanenhancedterminalforWindowswithanX11server,severalnetworktoolsforremotecomputingandalltheessentialUnixcommandspackagedintoasingleportableexefile.MobaXtermhasbeendesignedtosuittheneedsofcomputerusers,sysadmins,developersandwebmastersbyproviding:amultitabterminalwithembeddedUnixcommands(ls,cd,cat,sed,grep,awk,rsync,wget,...)anembeddedX11serverforeasilyexportingyourUnix/Linuxdisplayasessionmanagerwithseveralnetworkutilities:SSH,RDP,VNC,SFTP,FTP,Telnet,Rlogin,FTP,SFTPandXDMCP
WhatarethemainadvantagesofusingMobaXtermoverotherSSH/SFTP/FTP/RDP/VNC/X11solutionsinWindows?
MobaXtermhasseveraladvantagesoveritscompetitors:afullAllInOnesolution:itfeaturesanX11server,aterminalwithembeddedUnix/Linuxcommandsandacompletecollectionofnetworktools(SSH,SFTP,telnet,rlogin,RDP,VNC,XDMCP,FTPandSerialconsole)aportablesolutionwithouttheneedtoinstallandwithouttheneedofadministratorprivileges:MobaXtermisasingleexecutableselfcontainedfilewhichdoesnotneedtobeinstalledorrunwithadministratorprivileges no complex settings: there is no need to set up your environment or to tune settings: MobaXterm default parameters have been chosen in order for it to beimmediatelyusablesomeuniquefeaturesliketheremotesessionswithsavedpasswordsortheSFTPbrowser:whenyouconnecttoaremoteserverthroughSSH,agraphicalremotefilebrowserwillautomaticallybedisplayedallowingyoutotransferfilesortoeditthemdirectlyusingtheintegratedtexteditorMobaTextEditor a robust terminalbasedonPuTTY/MinTTYwith clean fonts, tabs, splitmodes (2or4 terminals sidebyside),Multiexecution (writeonce,executeeverywhere),copy/paste,save/printtextandmuchmoreanonintrusiveprogram:MobaXtermdoesnotconnect to the Internetorwriteentries intoyourWindows registrywithoutaskingbefore. Itdoesnotautomatically
checkforupdates.Thereisnotimelimitforusingit.
-
9/4/2014 MobaXtermfreeXserverandSSHclientDocumentation
http://mobaxterm.mobatek.net/support/documentation.html#1 20/26
checkforupdates.Thereisnotimelimitforusingit.
4.2.X11server
WhatisX11?WhywouldIneedanXserver?
TheXserver(a.k.a.X11)issomethingveryimportantinanUnix/Linuxenvironment:itisthegraphicallayeronwhichallgraphicalapplicationsarebased.As X11 is a network protocol, applications that can display their graphical interface on a Linux/Unix desktop can also display it through the network on anothercomputeraswell.This2ndcomputeronlyneedstorunanX11servertodisplaythem.MobaXtermincludesanX11server,basedon"X.Org",thatallowsyoutodisplayremotegraphicalLinux/UnixapplicationsonyourlocalWindowscomputerwithgreatspeedandperformances.Example:OnyourremoteUnix/Linuxcomputer,youjusthavetoperformthefollowingcommand:
DISPLAY=MY_WINDOWS_HOST_RUNNING_MOBAXTERM:0.0xclock
...andyouwillseethe"xclock"interfaceonyourWindowsdesktop
WhatdoesX11Forwardingmeans?
X11ForwardingisamechanismthatallowstheX11protocoltoberoutedthroughanexistingSSHchannel.Themainadvantagesofthissolutionare:X11protocolwillbeencryptedX11protocolcanbecompressedThereisnoneedtosetupanewcommunicationchannel(andtoopencommunicationportsinyourfirewall)forX11:thenetworkpacketsgothroughthealreadyexistingSSHconnection
HowdoesX11Forwardingwork?
WithMobaXterm,itisreallyeasytouseX11Forwarding:justconnecttoyourserverusing"sshYMYSERVER"or"sshMYSERVER"(theYoptionisautomaticallyon by default). Then, from the remote server prompt, run "xclock". Youwill see the "xclock" interfacewhich has been transfered throughSSHon yourWindowsdesktop.
WhyismyremoteDISPLAYvariableconfiguredto"localhost:10.0"?
Ifyoucheckthe"DISPLAY"environmentvariableonyourremoteserver,youwillnoticethatitissettosomethinglike"DISPLAY=localhost:10.0".Thisisthestandardbehaviour forX11Forwarding: itmeansthatanyprogramwillusea localvirtualdisplay(:10.0)which iscreatedbySSHandwhichwillbeautomatically forwardedtrhoughtheSSHconnectiontoMobaXtermdisplay.
IhaveanissuewithanX11remoteprogram(Java/X11/Motif)whichdoesnotacceptkeyboardinput:everytimeIpressakeyboardkey,nothingiswrittenonthetextfield
This problem can generally be solved easily by using X11with awindowmanager instead of using X11 in "multiwindow" (transparent)mode: go toMobaXterm
"Settings"window>"X11"tab>select"WindowedmodewithFvwm"settinginthecomboboxandapply.Restartyourremoteprogramanditshouldtakekeyboard
-
9/4/2014 MobaXtermfreeXserverandSSHclientDocumentation
http://mobaxterm.mobatek.net/support/documentation.html#1 21/26
"Settings"window>"X11"tab>select"WindowedmodewithFvwm"settinginthecomboboxandapply.Restartyourremoteprogramanditshouldtakekeyboardinputcorrectly.If youwant to use the standard "multiwindow" (transparent)X11 server andoccasionally use thewindowedX11 serverwith thewindowmanager, you cango toMobaXterm"Settings"window>"X11"tab>select"Multiwindowmode"settinginthecomboboxandapply,thenopenthe"tools"menuandselecteither"X11tabwithDwm"or"X11windowwithFvwm2".
HowdotheX11tabswithDWMwork?WhydoesMobaXtermincludethis"tiling"windowmanager?
DWMisapowerfulandrobustwindowmanagerwhichimplementsasmartwayofarrangingwindowsinordertogainspace.Windowsareautomaticallyplacedsidebysidesothattheyalloccupythemaximumavailablespaceonthedesktop.Tomoveawindow,use"Alt+Leftclick"Toresizeawindow,use"Alt+Rightclick"
HowcanIsimplylaunchtheX11serverwithoutstartingthefullMobaXtermenvironment?
YoucanlaunchtheX11serveratMobaXtermstartupandcompletelyhidetheterminalbyusingthe"hideterm"command:
C:\Some\Place\MobaXterm.exehideterm
ThiswilllaunchMobaXtermminimzedinthesystemtrayandstarttheX11server.
HowcanIdisplayafullremotedesktopfromaUnix/LinuxserverinMobaXterm(Gnome,KDE,FVWM,Openbox,Fluxbox,IceWM,XFCE,Blackbox,DWM,Enlightenment,LXDE,...)?
Youcanuse2differentsolutions:ConfigureyourLinux/UnixdistributionforenablingXDMCPremoteaccess.Youwillfindtheappropriateprocedureinyourdistributiondocumentationorbysearchingfor"activateXDMCP"onanysearchengine.Youwillthenbeabletodisplaythefullremotedesktopbystartinganew"XDMCP"sessioninMobaXterm Go to MobaXterm "Settings" window > "X11" tab > select "Windowedmode" setting in the combo box and apply. This will run a windowed X11 server atMobaXtermstartup insteadof thedefault "transparent"X11server.Connect toyour remoteserverusing "ssh YMY_REMOTE_SERVER"and then, run "gnomesession"orwhateverwindowmanageryouwant.If youwant to use the standard "multiwindow" (transparent)X11 server andoccasionally start your full remotedesktop in awindowedX11 server, you cango toMobaXterm"Settings"window>"X11"tab>select"Multiwindowmode"settinginthecomboboxandapply,thenstartthefollowingsamplecommand:
(export DISPLAY=:36; startstopdaemon q b S exec /bin/XWin.exe silentduperror notrayicon nolisteninet6 clipboard ac fp /usr/share/fonts/misc $DISPLAY && /bin/waitforX && ssh Y MY_REMOTE_SERVER "gnomesession")
4.3.SSHclient
WhatisSSH?
MobaXtermincludesaSSHclient(withSFTPandSCP)whichallowssecureencryptedconnectionstobesetupthroughthenetwork.TheSSHclientembeddedinMobaXtermisbasedonOpenSSH.
-
9/4/2014 MobaXtermfreeXserverandSSHclientDocumentation
http://mobaxterm.mobatek.net/support/documentation.html#1 22/26
HowcanIusepublicSSHkeyswithMobaXterm?
Onclientside,youhavetogenerateapublicrsakey:
sshkeygentrsaN''qf~/.ssh/id_rsa
Thencopythefilethathasbeengeneratedontheclient(".ssh/id_rsa.pub")tothe~/.ssh/directoryoftheserverandrenameitto"authorized_keys":
scp.ssh/id_rsa.pubuser1@server1:.ssh/authorized_keys
Ifthe".ssh/authorized_keys"filealreadyexists,justappendyourownpublickeytothefile:
cat.ssh/id_rsa.pubuser1@server1:/tmp/tmpkey&&sshuser1@server1"cat/tmp/tmpkey>>~/.ssh/authorized_keys&&rm/tmp/tmpkey"
WhydoestheSFTPtabnotpopupwhenIlaunchaSSHsession?/WhydoesMobaXtermnotpromptmeforsavingmySSHpassword?
SomeLinuxdistributions(likeOpenSuse)orsomeotherUnixsystemshavedisabledSSHpasswordauthenticationbydefault.InorderforMobaXtermtobeabletosaveSSHpasswordsortolaunchtheSFTPbrowser,youwillhavetoreenablethisfeature:Editthe"/etc/ssh/sshd_config"fileonyourserver,andcommentthefollowingline:
PasswordAuthenticationno
RestartyourSSHserverusingthefollowingcommand:
/etc/init.d/sshdrestart
ConnectusingMobaXtermSSHclientandyouwillnoticethat:theSFTPtabwillbecorrectlylaunchedyouwillbepromptedtosaveyourpasswordifyouwant
HowcanIperformaSSHconnectionthroughmySOCKSproxy?
Youcanusethefollowingcommand:
ssh X MY_USER_IN_REMOTE_HOST@REMOTE_HOST_NAME o "ProxyCommand connect SMY_USER_IN_MY_COMPANY@PROXY_NAME:PROXY_PORT%h%p"
4.4.RDPclient
WhatisRDP?
RDP (a.k.a. "TerminalServices" or "TS") is a remotedisplayprotocol introducedbyMicrosoft forWindowsOS. It allowsusers to connect to a remotehostwhiledisplayingandinteractingwiththeremotedesktopusingthelocalkeyboardandmouse.
-
9/4/2014 MobaXtermfreeXserverandSSHclientDocumentation
http://mobaxterm.mobatek.net/support/documentation.html#1 23/26
HowcanIsendCtrl+Alt+DelthroughRDP(terminalservice)?
YoucansendtheCtrl+Alt+DelkeyscombinationtoyourRDPremoteserverbyusingthe"Ctrl+Alt+END"keyscombination
4.5.SSHtunnelling(a.k.a."Portforwarding")
Whatisthepurposeofthe"tunneling"tool?
TheTunneling toolembedded insideMobaXterm("MobaSSHTunnel) isagraphical interfaceforeasilycreatingSSHtunnels.SSHtunnels(a.k.a."port forwarding")allowuserstoredirecttrafficfromoneportononecomputertoanothercomputerandport.Themainadvantagesofthissolutionare:NoneedtoopennewconnectionportsinsidefirewallsNoneedtosetupaproxyoragatewaywhenremotecomputersarenotaccessibledirectlyRedirectedtrafficissecuredbySSHencryption
4.6.MobaXtermterminal
MobaXtermdoesnotdisplaycorrectlysomespecialcharacters?Iencounterproblemswithmycountrycharset/encoding?
YoucantellMobaXtermtouse"UTF8"charactersetbygoingtothe"Settings"menu>"configuration">"Terminal"tab>choosethe"UTF8(unicode)"entryfromthe"Charset"setting.
IcannotrunaWindowsapplicationinsideMobaXterm.MyWindowsPATHisnottakenintoaccountinMobaXterm.
Youcan tellMobaXterm touse theWindowsPATHbygoing to the "Settings"menu > "configuration" > "Terminal" tab > check the "AppendWindowsPATHenvironmentvariabletoMobaXterm"setting.
IamusingalaptopandIdonothaveanymiddlebuttononmytrackpad.HowcanIpastetextintheterminal?
YoucantellMobaXtermtouserightclickforpastingbygoingtothe"Settings"menu>"configuration">"Terminal"tab>checkthe"Pasteusingrightclick"setting.
4.7.Advancedfeatures
-
9/4/2014 MobaXtermfreeXserverandSSHclientDocumentation
http://mobaxterm.mobatek.net/support/documentation.html#1 24/26
4.7.Advancedfeatures
IwouldliketostartMobaXtermfromaBATCHscript.HowdoIuseMobaXterminsidemyscript?Whatarethecommandlineswitchesavailable?
About launchingMobaXterm fromabatch file, youhave several possibilities. For instance, lets say youneed to start anSSHsession fromabatch file, keepingMobaXtermhiddenandtolaunchanXapplicationfromthatremotesshserver.Youcandothisbyusingthe"hideterm"switchforhiddingMobaXtermthe"closewhendone"switchforclosingMobaXtermaftersessionexitsthe"exec"switchforexecutingacommandForinstance,thiscommandlaunchesan"xclock"windowfromMYREMOTESERVER:
C:\Some\place\MobaXterm.exehidetermclosewhendoneexec"waitforX;sshMYREMOTESERVER'xclock'"
IwouldliketocreateanewpluginforMobaXterm.HowcanIdothat?
Downloadanexistingpluginfile(forinstance"Midnightcommander")Renamepluginextensionfrom".mxt3"to".zip"Openthe".zip"fileYouwillnoticethatcreatingMobaXtermpluginsonlyconsistsinputtingtherequiredcommands(executables,librariesandconfigurationfiles)intoaZIPfile,keepingthesamefolderstreethaninMobaXterm("/bin","/lib","/usr","/etc").IfyouwanttoaddasimpleWindowsprogram(exefile),youwill justhavetocopytheexecutablefileintothe"/bin"directory,createtheZIParchive,renameitto".mxt3"andputitinthesamedirectorythanMobaXtermexecutable.IfyouwanttoaddaLinuxprogram,youwillhavetogetitfromtheCygwinprojectortorecompileitusingmake,gcc,g++orothercompilersthatareavailablefromtheMobaXterm"Development"plugin.
Howtodisablethepenguinsscreensaver?Howtoremovethe"Games"menuandgamesentriesfromMobaXterm?
ThepenguinsscreensaverandthegameshavebeenaddedtobringfuntoMobaXtermterminal.UserswhouseMobaXterminsideacompanymightwanttodisablethese tools inorder tohaveamoreconvenient tool forworking.That iswhy theProfessionaleditionofMobaXtermallowsyou todisable thescreensaverand toremovethegamesandcorrespondingmenuentriesfromtheprogram.
Ilovethepenguinsscreensaver!CanIsubscribetoMobaXtermProfessionalEditionandkeepit?
We are glad you enjoy this screensaver: we spent a lot of time developing it! Of course, in the Professional Edition ofMobaXterm, you can keep the penguinsscreensaver(andthegames)ifyouwant.
Iwant tosavemyterminaloutputbutwhen Ichoose the"Logall terminalactivity to the followingdirectory", Igetahardlyreadable filewithspecialcharactersinit.
Ifyoujustwanttosavetheoutputfromaterminal,pleaseusethe"Terminal"menu>"Saveterminaltext".Abouttheterminallogging,itcanbeusedtologanythingthatisdisplayedinsidetheterminal.Ifyouwanttoreopenalogfile,pleaseuseMobaTextEditorinordertoremovethesespecialcharactersfromthefile.
-
9/4/2014 MobaXtermfreeXserverandSSHclientDocumentation
http://mobaxterm.mobatek.net/support/documentation.html#1 25/26
4.8.Miscellaneoustroubleshooting
MobaXtermdoesnotrunonWindows2000:itsaysthatthegdiplus.dllismissing...
MobaXtermiscompatiblewithWindows2000,butonoldWindows2000installations, itcandisplayanerrormessageaboutamissingdll gdiplus.dll,butyoucandownloaditforfreeandputitinthesamefolderasmobaxtermexecutableinordertomakeitwork:http://www.dllfiles.com/dllindex/dllfiles.shtml?gdiplus
Iwanttoaskforsomesupport.Canyouhelpme?
Pleasesendusanemailbygoingtothe"Help"menu>"AboutMobaXterm">"Sendusanemail".Inthisemail,pleasetellus:Whichversionandwhichedition(personalorprofessional)ofMobaXtermyouareusingWhichWindowsversionyouareusingIncaseyouencounteranissue,pleasedescribepreciselywhathappens(errormessage,freeze,etc...)andtrytogiveusastepbystepprocedurewecanfollowinordertoreproducethebug.
Isentanemailbutyouneveranswered
Pleaseallowthe"mobatek.net"domaininyouremailserversothatouremailswillnotgotoyourSPAMfolder.Alsoverifythatyoucorrectlywroteyouremailaddressinthecontactform.
-
9/4/2014 MobaXtermfreeXserverandSSHclientDocumentation
http://mobaxterm.mobatek.net/support/documentation.html#1 26/26
Follow@mobatekCopyright2013MobatekSARLaucapitalde3000
MobaXtermMobaSSHMobaMotivMobaPhotoMobaLiveCD