Tải bản đầy đủ - 0 (trang)
Hack 42. Telnet or SSH to Internet Servers

Hack 42. Telnet or SSH to Internet Servers

Tải bản đầy đủ - 0trang

connectionsettings.

Figure4-18.Definingthesessionproperties



Afteryou'vecreatedanewsession,usethetrackwheeltobringupthemenuand

chooseConnect,asshowninFigure4-19.

Figure4-19.Makingtheconnection



4.7.2.EnterCommands

MidpSSHconnectstotheremotecomputerandusestheusernameandpassword

youdefinedintheconnectiontoauthenticatesoyoudon'thavetotypeit(thank

goodness!).Althoughitappearsyoushouldbeabletostarttypingcommands

justasyouwouldfromacomputer,MidpSSHforcesyoutousethetrackwheel

tochooseInputfromthemenu.Itgivesyouablankscreeninwhichtotypeyour

fullcommandand,unliketheSSHclientyou'reprobablyusedto,thecharacters

youtypearen'timmediatelysenttotheremotemachine.MidpSSHallowsyouto

typeyourcommandandthensenditallatoncetotheremotecomputer.This

givesyoualittlenicerinterfacefortypingandallowsyoutocorrectthemistakes



you'llinevitablymakebeforesendingthecommand.Figures4-20and4-21

illustratetheprocessofenteringacommandinMidpSSH.

Figure4-20.TheinputmenuonaMidpSSHconnection



Figure4-21.Type(andcorrect!)yourcommandbeforesending



Thedefaultfontsizeforyourconnectionisverytiny.Youwill

probablywanttochangeittosomethingalittlelarger.GotoSettings

Fonttoaccessthatsetting.Ofcourse,asyouincreasethefont

size,you'lllosevaluablescreenrealestate.Ifoundasettingofsmall

tobetheoptimalsettingformyuse.



4.7.3.MoreInfo

AlthoughyoucanaccessInternetserverswithMidpSSH,youwon'tbeableto

reachyourintranetcomputers(unless,ofcourse,they'reaccessiblefromthe

Internet).However,thepriceisright(free!)forthissoftware.Ifyouneedaccess

tointranetservers,usetheIdokorroclient[Hack#43].



Hack43.TelnetorSSHtoIntranetServers



UsetheIdokorroclienttoTelnet/SSHtointranetserversthroughyour

BES'sMobileDataService.

TheMidpSSHclient[Hack#42]canbeusedtoconnecttocomputersonthe

Internet,butwhataboutconnectingtoserversonyourintranet?Thereisaclient

fromIdokorro(http://www.idokorro.com/)calledIdokorroMobileSSHthatcan

dojustthis.YoumustbeaBESusertousethisclientonyourintranet,sinceit

usestheBlackBerryEnterpriseServer'sMobileDataService(BES/MDS)to

connect.Ifyou'reaBlackBerryWebClientonlyuser,youcansetupTCP/IP

[Hack#37]onyourdeviceandusethissoftwareinTCP-onlymode.



4.8.1.InstallandConfigureIdokorroSSH

IdokorroMobileSSHisinstalledthesameasmostotherapplications:thereisan

over-the-airinstalloradownloadtoinstallwithApplicationLoader.Once

installed,selecttheiconfromyourHomescreen.Thefirsttimethesoftwareruns

onyourdevice,itwillaskyouwhetheryouwanttheprogramtouseyour

BES/MDSorTCP/IPforitsnetworkcommunication,asinFigure4-22.

Figure4-22.Choosingthemodedependingonyourconnection



Noticethesternwarningthatisgivenfortheconnectiontype.Itwarns

thatthechoiceispermanentandtheonlywaytochangefrom

BES/MDStoTCP/IPorviceversaistoreloadtheentiredevice.

Whoathat'sprettyominous!Isthisjustbadsoftwaredesignby

Idokorro?Actually,no.TheBlack-Berryoperatingsystemis

designedwithsecurityinmindanditisabletodetectwhenan

applicationthatusesTCP/IPlaterswitchestoBES/MDS.Whenthis

situationisdetected,theoperatingsystemdisablesthethird-party

applicationforever,oruntilyoureloadtheentiredevice.Thisisto

preventapplicationsfromaccessingcorporatedataandthen

immediatelybeingabletomakeaconnectiontotheInternet,

presumablytostealproprietarydata.Mostvendorsdistributetwo

versionsoftheirsoftware,onesolelyforBES/MDSusersandanother

forTCP/IPusers.Idokorrohaschosennottotakethisrouteand,quite

frankly,hasmadeitalittlelessconvenientforitsusers.



4.8.2.CreateaNewConnection

TheconnectionsettingsscreenfortheIdokorrosoftwareissimilartothe

MidpSSHclient,althoughthereareimportantdifferences.TheIdokorroclient

letsyoucontrolsettingsthatMidpSSHdoesn't.Youcancontrollinewrappingas

wellasthenumberoflinesinthebufferforscrollingback.Youcanalsospecify

yourowncolorsfortheforegroundandbackgroundinyourconnection.Youalso

havemorecontroloverwhichprotocolyou'dliketousewhenyouconnect.For

example,theclientletsyouforcetheconnectiontoconnectusingtheSSH2

protocol.



YoucanuseSSH2withMidpSSH,buttherewillbequiteadelay

whentheclientnegotiatesthekeyswiththeSSHserver.Idokorro

MobileSSHovercomesthisliabilitybyusingabuilt-inRIMlibraryto

performthenegotiation,whichspeedsupthekeygeneration

considerably.



Tài liệu bạn tìm kiếm đã sẵn sàng tải về

Hack 42. Telnet or SSH to Internet Servers

Tải bản đầy đủ ngay(0 tr)

×