Archive

Archive for May, 2011

GUI for fdisk ?

If you wish to use GUI for fdisk, just use cfdisk 🙂

Categories: Linux Tags:

Как да разберем на кой порт коя услуга “слуша” ?

Под Debian това става с помощта на lsof

sudo apt-get install lsof

Командата е елементарна:

lsof -i :port

Например, за да разберем коя услуга суша на порт 1723:

blagomir@dragonfly:~$ lsof -i :1723
COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
pptpd    6060 root    6u  IPv4 532867      0t0  TCP *:1723 (LISTEN)
blagomir@dragonfly:~$
Categories: Debian Tags:

QR код за адреса на нашия блог :)

За тези, които не знаят какво е QR code могат да погледнат тук (wiki)

Categories: Всичко друго Tags:

May 17th, 2011 No comments

Cisco change ssh default port

How to change cisco default port :

g1r5_router(config)#ip ssh port 2000 rotary 1
g1r5_router(config)#line  vty 0 4 
g1r5_router(config-line)#rotary 1
g1r5_router(config-line)#end
g1r5_router#copy running-config startup-config
Destination filename [startup-config]? 
Building configuration...
[OK]

Now lets try it:

[13:16]vhristev@g1r5:~$uname -a
Darwin g1r5 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov  3 10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386 i386 i386
[13:16]vhristev@g1r5:~$ssh 192.168.0.1 -p 2000 
vhristev@192.168.0.1's password: 
 
g1r5_router>en
Password: 
g1r5_router#sh ver 
Cisco IOS Software, 1841 Software (C1841-ADVIPSERVICESK9-M), Version 12.4(13b), RELEASE SOFTWARE (fc3)
Categories: Всичко друго Tags: