sudo apt-get install libsys-virt-perl
Linux administration , Unix administration , Vmware Vsphere administration , Oracle DBA ,apache, backup, dhcp, dns, kvm, xen, kernel, ldap, kvm, monitoring, ticketing, networking, Mail servers, SAN,troubleshooting
Labels
- Amanda (2)
- Ansible (2)
- Answer these Questions (2)
- antivirus (2)
- apache (3)
- Bash (16)
- Chef (3)
- Citrix (2)
- clusters (2)
- Concept (22)
- DatabaseAdminstration (11)
- DevOps (1)
- dhcp (2)
- Downloads (3)
- ELK (1)
- ELK stack (1)
- encryption (1)
- Free trainings (1)
- Frequently Used Commands (46)
- FTP (1)
- git (1)
- gpg (2)
- Hardware (1)
- httpd (2)
- Interview Questions (53)
- iptables (1)
- IT NEWS (3)
- java (1)
- kibana (2)
- knife (1)
- KVM (2)
- linux (17)
- Linux installations (22)
- Linux Jobs (4)
- Linux Links (2)
- logstash (1)
- Mac (1)
- MediaWiki (1)
- MySql (2)
- Nagios (2)
- Networking (3)
- open Nebula (5)
- Open Source tools (12)
- OpenNMS (1)
- openSSL (1)
- Oracle on Linux (5)
- Performance Monitoring (1)
- php (1)
- postfix (1)
- postgres (1)
- postgres-XL (1)
- Product Reviews (1)
- Python (2)
- rssh (1)
- Samba (2)
- Scripting (16)
- security (4)
- selinux (1)
- Server (1)
- SFTP (1)
- Social Awareness (1)
- Solaris (1)
- SSL (1)
- svn (1)
- TCP/IP (1)
- Technology (1)
- Tips and Tricks (32)
- Training and materials (8)
- Troubleshooting (6)
- Ubuntu (18)
- unix (1)
- virtualization (17)
- Vmware (25)
- Vyatta (1)
- windows7 (1)
- xml (1)
Python IP V4 validation
def validIP(address):
parts = address.split(".")
if len(parts) != 4:
return False
for item in parts:
if not 0 <= int(item) <= 255:
return False
return True
parts = address.split(".")
if len(parts) != 4:
return False
for item in parts:
if not 0 <= int(item) <= 255:
return False
return True
Password less login's between servers ( ssh , scp , rsync)
For a particular user
/home/username/.ssh ( go to this directory if that directory does not exists create one with name .ssh )
The key generated for password less login is user specific. So create separate keys for each user.
Goto .ssh directory
ssh-keygen -t rsa (give that command and click next next as usual :) )
It will generate id_rsa and id_rsa.pub two files
one is private key and another is public key
now append the contents of id_rsa.pub to file authorized_keys in the system you want to connect
the file authorized_keys will be in .ssh directory of the other system if that file is not there create it.
cat id_rsa.pub >> ~/.ssh/authorized_keys
now try user@192.168.1.2 ( if 192.168.1.2 is the system you want to connect without password)
/home/username/.ssh ( go to this directory if that directory does not exists create one with name .ssh )
The key generated for password less login is user specific. So create separate keys for each user.
Goto .ssh directory
ssh-keygen -t rsa (give that command and click next next as usual :) )
It will generate id_rsa and id_rsa.pub two files
one is private key and another is public key
now append the contents of id_rsa.pub to file authorized_keys in the system you want to connect
the file authorized_keys will be in .ssh directory of the other system if that file is not there create it.
cat id_rsa.pub >> ~/.ssh/authorized_keys
now try user@192.168.1.2 ( if 192.168.1.2 is the system you want to connect without password)
Subscribe to:
Posts (Atom)