menu bar

Selasa, 14 Oktober 2014

Port dan Menambah Welcome Message pada SSH server

# Saya Menggunakan ubuntu sebagai contoh, untuk yang lain silahkan sesuaikan, sebagai info ada beberapa jenis remote computing antara lain : Telnet, SSH (Secure SHell), VNC (Virtual Network Computing) dll. Jenis remote computing tsb berkomonikasi melalui default port yang berbeda-beda.

1. Telnet pada port 23
2. SSH pada port 22
3. VNC pada port 5900
tapi port tersebut bisa kita ubah sesuai keinginan kita dan untuk keamanan, untuk merubah port berikut langkah - langkahnya :
  1. install SSH Server dengan menggunakan perintah sudo apt-get install openssh-server
  2. login sebagai root dan edit file sshd_config yang terdapat di directori /etc/ssh
  3. cari baris file yang berisi skrip Port 22, pastikan bahwa tansa # yang berada di awal kata port 22 sudah di hilangkan.
  4. setelah itu kita bisa mengubah port 22 sesuai dengan keinginan kita
  5. Restart service SSH dengan menggunakan perintah etc/init.d/sshd restart    
  6. Cek apakah port default SSH sudah terganti apa belum, untuk cek bisa menggunakan nmap atau zenmap
# Menambahkan welcome message pada SSH
  1. login sebagai root
  2. edit file sshd_config yang terdapat di direktori /etc/ssh dengan vim /issue.net (isi sesuai keinginan anda) dan keluar simpan dengan mengetik :w (save file) :q! (discard changes and quit file)
  3. Restart service SSH dengan menggunakan perintah /etc/init.d/sshd restart
  4. Login ke server SSH dan lihat apakah Welcome Message sudah berganti dengan yg anda ubah tadi,..
# Menggunakan Editor vi pada terminal Linux

STARTING vi                                              |       ENTERING TEXT
vi  filename edit a file named "filename"            |       i  insert text left cursor
vi  newfile create a new file named "newfile"    |       a  append text rigth of cursor

MOVING THE CURSOR                               CLOSING AND SAVING
h  left one space                                              |  ZZ save file and then quit
j  down one line                                               |  :w  discard changes and quit file
k  up one line                                                  |  :q!  discard changes and quit file
l  rigth one space
BASIC EDITING                                          MOVING AROUND IN A FILE
x   delete character                                                      | w  forward word by word
nx  delete n character                                                  |  b  backward word by word
X  delete character before cursor                                 |  $  to end of line
dw delete word                                                           |  0 (zero) to beginning of line
ndw  delete n word                                                     |  H  to top line of screen
dd  delete line                                                             |  M to middle line of screen   
ndd delete n line                                                         |  L  to last line of screen
D  delete character from cursor to end of line              |  G  to last line of file
r  replace character under cursor                                 |  1G  to first line of file
cw  replace a word                                                      |  f  scroll fordward one screen
ncw  replace n word                                                    |  b scrool backward one screen
c  change text from cursor to end of line                       |  scrool down one-half screen
o  insert blank line below cursor (ready for insertion)    |  u  scrool up one-half screen
O insert blank line above cursor (ready for insertion)    |  n  repeat last search in same direction
j  join succeeding line to current cursor line                   |  N repeat last search in opposite direction
nj join n succeeding line to current cursor line
u  undo last charge
U restore current line

Tidak ada komentar: