Dicas de SSH
Upcoming SlideShare
Loading in...5
×
 

Dicas de SSH

on

  • 1,034 views

Palestra ministrada no Giran Siege

Palestra ministrada no Giran Siege

Statistics

Views

Total Views
1,034
Views on SlideShare
1,029
Embed Views
5

Actions

Likes
0
Downloads
5
Comments
1

1 Embed 5

http://www.almirmendes.com 5

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

CC Attribution License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Dicas de SSH Dicas de SSH Presentation Transcript

  • Almir m3nd3s@m3nd3shttp://www.almirmendes.comalmir.mendes@giran.com.br http://www.flickr.com/photos/polarboy/2856319701
  • Dicashttp://www.flickr.com/photos/danielygo/4995689835
  • Fingerprint$ ssh -A 192.168.3.11 -l rootThe authenticity of host 192.168.3.11 (192.168.3.11)cant be established.RSA key fingerprint isa3:1e:e7:3e:22:86:3d:8a:5d:6b:cc:3d:ac:f7:87:2a.Are you sure you want to continue connecting (yes/no)?
  • Mas porque? http://www.flickr.com/photos/98157122@N00/3274734764
  • ///////// PORRA!Vai dizer que não sabia dessa!? Sei se eu quiser!!!! http://www.flickr.com/photos/atomtigerzoo/3821873510
  • Acesso$ ssh m3nd3s@almirmendes.com# ou$ ssh -l m3nd3s almirmendes.com
  • Sussa!http://www.flickr.com/photos/dvdstelt/2384629157
  • E agora?http://www.flickr.com/photos/kattanapilot/3336650785
  • SSH Keyshttp://www.flickr.com/photos/practicalowl/256628505
  • Gerando$ ssh-keygen -t rsa -C “Minha Chave” -f m3nd3s$ ls .-rw------- 1 m3nd3s staff 1675 m3nd3s-rw-r--r-- 1 m3nd3s staff 397 m3nd3s.pub
  • m3nd3sChave PRIVADA!!!!m3nd3s.pubChave publica ;)
  • Ok, tá bom!É SÓ ISSO?!?!
  • Authorized KeysNo servidor: ~/.ssh/authorized_keys2 # Permissão 600 ~/.ssh # Permissão 700
  • Acesso s/ senha $ ssh root@almirmendes.com$ ssh -A root@almirmendes.com Hum?!? propaga a chavehttp://www.flickr.com/photos/niallcorbet/5696478308
  • Cmd Remoto$ ssh m3nd3s@almirmendes.com touch ~/tmp/restart.txt http://www.flickr.com/photos/sarahandmikeprobably/3330705509
  • Debugssh -v m3nd3s@almirmendes.comssh -vv m3nd3s@almirmendes.com http://www.flickr.com/photos/spacial/4636903821
  • O que você faria? 192.168.0.5:3000
  • Port Forwardingssh -v -L 2222:localhost:22 root@almirmendes.com sleep 100 http://www.flickr.com/photos/ncreedplayer/4014247275
  • SFTP$ sftp root@www.almirmendes.com:/tmpConnecting to www.almirmendes.com...Changing to: /tmpsftp>
  • Screen$ screenCTRL + A + C CTRL + A + A CTRL + A + [num] CTRL + D
  • Remote Pair ProgrammingUsuário 1:$ screenUsuário 2:$ screen -x
  • O_o$ tar zcvf - /var/www | ssh m3nd3s@almirmendes.com "cat > backup.tar.gz" Hum?!?
  • Referências$ man ssh$ man screen$ man scp$ man sftp
  • ContatosAlmir m3nd3s@m3nd3shttp://www.almirmendes.comalmir.mendes@giran.com.brm3nd3s@gmail.com