Posts

Showing posts from December, 2015

Using 'mutt' instead of 'mail' in Linux

With mutt instead of mail you would simply call echo "body" | mutt - s "subject" - a attachment0 attachment1 [...] -- my@email . com   Some old verison of linux doesn't support the 'mail' command for attaching files.  So this will be useful for sending mail with attachment on those servers.

How to enable remote desktop in cisco 5505/5506x Firewall

ASA version prior to 8.3 ciscoasa(config)# static (inside , outside) tcp interface 3389 192.168.1.10 3389 netmask 255.255.255.255 ciscoasa(config)# access-list OUTSIDE-IN extended permit tcp any any eq 3389 ciscoasa(config)# access-group OUTSIDE-IN in interface outside ASA version 8.3 and later ciscoasa(config)# object network RDP_static ciscoasa(config-network-object)# host 192.168.1.10 ciscoasa(config-network-object)# nat (inside , outside) static interface service tcp 3389 3389 ciscoasa(config)# access-list OUTSIDE-IN extended permit tcp any host 192.168.1.10 eq 3389 ciscoasa(config)# access-group OUTSIDE-IN in interface outside NOTE: Notice that in version 8.3 we reference the Real IP address (192.168.1.10) in the access-list and not the mapped IP

How to check whether a hostname is present in /root/.ssh/known_hosts file...

To check whether a particular hostname or servername is present in the known_hosts file, use the following command. #ssh-keygen -H -F hostname thats it.