Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Raspberry Pi && SSH

Raspberry Pi

Related Books

Free with a 30 day trial from Scribd

See all
  • Login to see the comments

  • Be the first to like this

Raspberry Pi && SSH

  1. 1. 94 l'‘i-°ll *1 i1l—7:Hllfil 3r°l “J 4?-'5>‘l7l Sung-jung Kim ajaxO615@gmai1.com
  2. 2. .- pI@raspberrypl: ~ : -i@i'aspberrgp1 sudizi apteget install i: iperi; «sl’rserrer ". eai: t1ng j: -airliage hits. .. Done Eluildrng dEF‘8I"IdEI'lC'; | tree 3!ead1ng state 1nl'oriiiat1oi'i. .. Ilona 3F'€l'lSSl server 1: already the newest. liersron. J upg . ed, U rieiiilg 1i'ist. =i1led, U to rer-icive and U not upigradeij. jrflraspberrgipl
  3. 3. p| @raspberrypl: ~ VI Package generated conhguratlon flle I See the ; :hd_c0nfxg(5) manpage For detalls » Mhat ports. IP: and protocols me lizten for 3* Port 22 Port 5565 it Use theie optlons to restrlclz mhmh mterFaces/ protoc-: :1s Sihd w111 bmd to nL13tenHdm &L1stenHdm Protocol 3 3* Host‘ as For protocol verzion 2 lege UsaPriv1le9 3* Li+'et1m>: - and sue OF ephemeral versmn 1 server keg KegRe-generatlonlnterval SBUH ‘3erverKegB1ts .768 ogglng I Sg31ogFao1l1tg RUTH Lo9L>: -vel INFO It Huthent mat; on: Log1nEraceT1me 120 Perm1tRootLog1n Hes "fetc/ Ssh/ s€hd, conF1g” SB lxnes, 25”1 characters
  4. 4. " pI@raspberrypi: ~ ‘etc/ ho€te. a1lom: l1~: t DF host: that are allowed to access the eastern. See the manual pages host= __ax: cessl5) and ho= .ts_opt1dns(5?| . Example: RLL: LCIEHL 2some_ne| :9roup RLLZ . FUdbar. edu EC= ~‘l| LEF‘T terrumalaerver. fl:u: wbar‘. E-du IF t_4ou're sgomg to protect the portmapper uee the name "portmap" For the daemon name. Remember that gnu can onl-:1 use the legmord "RLL" and IP addresses (NUT host. or domam rxanmesfi For the portma; -per, as well as For rpcanourxlzd (the NFS mount daemon), See portmap£8I‘ and rpx: .mour: t.d(8I‘ For further xruforruatxon. 1d: RLL "fete/ hosts. a1low“ 13 lmes, 589 characters
  5. 5. pI@raspberrypI: ~ fietc/ hosts. deng: 11st ot‘ hosts that are , not, allowed to access the sgstem. See the manual pages hosts_t : ess('3J and h»: :sts_opt1onst5). A Example: HLL: some. host. name, .some. domam F1LL E'; {lIEF‘T 1n. F1ngerd: n: -thev’. host. I': arue, .Ufil‘IE‘l'. ElUInv':1l'4 IF L_1ou‘re going to protect the portmapper use the name "portmap" For the daemon name. Remember that gnu can onllg use the | <et_1word "QLL" and IF’ addresses NOT host or domam names) For the portmapper, as well as For rpc. mountd (the NP}. mount daemon). See por'tmapll8J and rpc. mountd>I8) For further xnforrnatxon. The PHRRNUID mldcard matches any host whose name does not match 1t: address. . , You may w1:h to enable thxs to ensure ang programs that don‘t : al1da| :e looked up hostnames stlll leave understandable logs. In past It versmns of Debxan thls has been the default. at ALL: PRRHI-IDIII ALL: RLL "/ etc/ hosts. deng" 20 lxnes, 888 characters
  6. 6. pi@raspberrypI: ~ Jillraspt-errL_1p1 sudo apt-get mstall openssh-server ' age llsts. .. Done ’ t verslon. ) upgraded, fl nel-I13 1 , ‘ and 0 not upgraded. berrgqpl 3PlI4€f'7“: IF‘. l . ‘ sptlerrgpl _ v1 / etc/ hosts. der»g : -xilraspberrgm / etc/1n1t. d«“ssh restart [ ’ ] Fie artxng | JpenB‘3I| 'E. er. ure ‘Shell server: sehd. Jnlraip er r gm
  7. 7. entlp l grep : :h H. H~H‘H; ‘ HEW ,1; mg; ' / ‘lfil 7‘—t% §l*°Ll 3-2 Eifllfi %% §l*°L $sudo netstat -ntlp I grep ssh $ps ax I grep ssh
  8. 8. “‘ “*0 iEiH% (Port-Forwarding) > PCBI Lllltitli $195‘ °I 53-T"r7I‘fl EUJ ‘<'5lI%"%1/lT1‘r.
  9. 9. PC l92‘|6801O PC 192168020 -1 o ‘c>“'rr7 6143 52108 PC 192168030 2|i? lIP LHFHP %«°r71—e seam] E4124; '§"‘3‘7I9l' see PC%-8- 192.168.~i A15} as IP ease %T°r71e5’—H %j—°= l*s¥711 en}.
  10. 10. 8]-74I‘¥l' 2111 EEEE 51% 01 —% 73% %-%71~: — 01% 01: PCE @731 0% es set}. new 01% exile surge-171 $4611 gasses sneolor en}.
  11. 11. 21% 255 R8 21121 25: as 01 s 73% ~: '—+>r71§ £53919 e a1o1e: ::. .— >316} 04 192.168.0.2O9I 141% IP wees are Pee eesnee.
  12. 12. p1@raspberrypl: ~ A loom as: D1 p1 password: Lmua raap-berrI. _|px 3.18.7+ #755 PREEMPT Thu Feb 12 17:14:31 GMT 2U15 armu-El The program: lneluded wlth the Dehlan ENIJ. -’L1rn. r-: egstem are Free soFtware7 the evatt d1strihut1on terms for each program ar, deecrlbed 1n the indwidual files 1n . /usr, share/ doc: “*/ eopgr1-3ht. Debxan BNIJ/ L1nux comes wlth HB'3DLUTEL‘r' NU LJFJRRHNTY. to the elztent pert-utted bg applwable law. Last loglnt ‘Sun Mar 15 53:02 3015 trom pllfiraspberrgpi 1Fro g eth0 Lmk eheap: hernet Hhladdr bEI:27:eh: ‘38Z‘37Z1a met addr:132.1B8.0.3 Bcast:1‘32.1E»I3.“.2‘35 Mas| «:2'35.25'3.255.0 UP BRIZIHIIIZHST RLINNINE MIJLTIEHST I1TU:1EUO Metrl ’ RN packet 51 '7: errorszu droppedzu overrunszu ‘Fra . T)~‘I packet ror520 dropped:0 D. 'errun5Z(| r. arr1er: C| colllsnon lentlnflll RX bgte 3382111 (‘3dEl.9 K1B) TIA’. hgtes:1713441 (1.8 M13) L1nk BYICGPILCICEII Loopbacl met addr:127.lI.0.1 Mas 2E5.U. U.U UF‘ LIJEIF‘E: HlIK RUNNlI'IE I'1TU: b SE» l‘Ietr1c: l FL‘-I pa-: I:et 4 errc 5:‘) drop; -ed20 o'. .'errun5:0 Frame-:0 TX pact errr 0 droppedgfi ouerrunszn v: arr1er: |’l collxszon 0 queuelen: U RX bgtesz. (552.0 E) TX hgtes: '552 I552.” BI! pflraspberrgpx
  13. 13. EFMM: -tIIovIu| pV4E NIT - Moxlllrrhn . -in >. 2.. .‘ . :,. r 1 1.3%’ . O192.1no.1" . ... ... _-«
  14. 14. Q d» 192.168.0.1/"trade. ‘Wm V CI Iox :1” In : : : p11IvIemo4T I I6. flhi’-VI E: Nassau L~_. ;., m W I‘ A O E gfi E 3 ? _IE1'; ! as sea 0.1519101: asses eea [3 _I;2_A_1 nag/ go_p 915153 ‘E§ 7954 IQIP 93 9‘¥| F4-’5‘- — I]. ‘#74501 $321101; ? _IE1'; fl as All? 03 Am 32 E 11 3. * W -71%‘ 95 I E 3%! ‘-ll-'3 IP5-5‘. 192,168.01 on-ucp A131 sin oucp A-um gaze; %7_‘1IP <39 €24 |92.168.0.2 . 192.16Bl0.254 its use -we sat E %%: s-- man we ss| o(l= u.E. $=Ia Ol%) ! $212212: ye u. g.9_r§ 7'3 53! an ‘arena! my 8.54 1 as are: E71"-; l?§El0l 912: are 2”‘ ‘IE’ :55’ gas: as 2r. ;:1o1|A1e= s=see2t¢9leLuc+. 91~‘«‘i—°1l*1 “.3? 71%? IP $2/2% §l°L1§E‘r. (91l‘e IP #3:)
  15. 15. EFM Netwwks ir>"ME--- * (-7 is 192.168.1111 V 11 v C_ Q ; II: I:: ap'rIIvIEmo4T Q “I-lI*§lM7I % Efllfiflfi 3, jgg 33; sens; 2:2 Mensa: :1 92.1012 A| :E=12¢2.*%32 192 . 168 .0 7% weal as ea ““‘*""’$i — 2 . , 12 1 {i gt‘ gglgoi BN1 flail PC. I IP . ,.. .§Vg§(192 168.02) ‘1 gglm glans); EEE§ TCP/ UDP j QJEEE I ~ 43% 5 ' * V ; 47 , - 1 — C]. :12 as ‘ I ‘HA + in 14159431321 °’. a$uz_~1-are! *—’——~~? '~ I _ “‘: r‘NrA~! v/Va-’r_? _E1V: !;! »Va| ' ,7 2 : — : ; ; 5 V V, 1 ; __ . ‘. ’ “ , 3 41741 . 3-1 DMZ, T,, i,, ,F. §a5 REIOIE LIL? -IP fig snag ukeyg ‘ 1 L. EEEI>1 es “1 31371? Q5 1 Raspberry 192,165.03 tcp/ udp 5566~5566 5566 T‘ 3151?; E11015 are: - mass > NAT/ a1%E1 3&E1 > £52915 es - T1731 01% = 11%‘—°11 ? =l°1% ‘I: 915% 0113-7111 119-1 - 11111-113 : (1°1°11*1 3111211 inet addr %i)E1EH11?1»"1°191 see 111 11- IP see ‘:1 Ea‘ - 91-‘? —, 1115- E5 Id: : PPT 3111. fi11°17<1°11/K1 see Eleldi 11%‘ (ex. 5566)
  16. 16. Putty% <>1—%% SSH —: &7—% PS-f= :—
  17. 17. x - — -o ': r-iii *1 ‘oi-iii'iLgi-'i"r. ,iit-ii: Category: Basic options for your PUTTY session v Session Specify the destination you want to connect to Logging Host game (or I? address) Eort v Terminal i let 5566 Keyboard Connection type: 33" Raw Telnet Rlogin - SSH Serial 1 Features 1 Load, save or delete a stored session ' Window Saved Sessions Appearame RaspberryPi_Outer Behaviour _ , Default Settings Load Translation R b P_ , as er I Selection P W . Save RaspberryPi_Outer Colours Delete Fonts ' Connection Data Proxy Close window on exit: Telnet «? Always Never only on clean exit Rlogin J > SSH About Open Cancel 1. Host Name(or IP address) 1 9l1"i- IP —Zr_+_ ‘Q E 2. Port : EEEEEE £5191: E E
  18. 18. Q A A 112.108.40.234 - PUTTY lcigiri aii 1‘/ ‘r—Z—Hll“/ l -7l°l ID? P/ W ‘fig.
  19. 19. pI@raspberrypI: ~ paasmrd: ‘ i'aspbei'r-. _4pi 3.18.? + #755 PFiEEl1PT Thu Feb 12 l7:l4:31 GMT 2015 armuifil The programs iricluded Nlth the Ilebian GNU/ Linux sgstem are Free sottiiiarez the exact d1sti'1bi, it1-: ii’i t for eai; l‘i piwjgi'aiii arr’: dr': Si; i’il: ied in the 1rii: |1n, '1di, ia1 Files in . /u e. -’dcii: ./*. /cu); -gi‘1-ght. Debian GN| _|/ L1ni_i>< comes with FJBSDLUTELY Ni] IJJRRRRNTY, to the eytent permitted by applicable law. Last lpgiriz ‘Sun Mar 15 14:42:13 2015 from p1|2i’a3pbei'ryp1 ‘ I
  20. 20. Reference - httpI/ /mroon. tistory. com/ entry/ %EC%99%B8%EB%B6%8O%E C%97%90%EC%84%9C- %EB%9D%BC%EC%A6%88%EB%B2%AO%EB%A6%AC%ED% 8C%8C%EC%9D%B4— %EC%AO%91%EC%86%8D%ED%95%98%EA%B8%BO - httpI/ /j0ta. tistory. com/17

×