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 :
- install SSH Server dengan menggunakan perintah sudo apt-get install openssh-server
- login sebagai root dan edit file sshd_config yang terdapat di directori /etc/ssh
- cari baris file yang berisi skrip Port 22, pastikan bahwa tansa # yang berada di awal kata port 22 sudah di hilangkan.
- setelah itu kita bisa mengubah port 22 sesuai dengan keinginan kita
- Restart service SSH dengan menggunakan perintah etc/init.d/sshd restart
- Cek apakah port default SSH sudah terganti apa belum, untuk cek bisa menggunakan nmap atau zenmap
- login sebagai root
- 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)
- Restart service SSH dengan menggunakan perintah /etc/init.d/sshd restart
- Login ke server SSH dan lihat apakah Welcome Message sudah berganti dengan yg anda ubah tadi,..
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 | d 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:
Posting Komentar