Skip to content

noisy network

Category: Bash

Clear SSH Key File

A simple way to clear the contents of ssh key file without deleting the file:

echo -n > /home/user/.ssh/known_hosts
Posted on June 8, 2017June 15, 2017Categories BashTags /.ssh/known_hosts, clear ssh key file, known_hosts, ssh key fileLeave a comment on Clear SSH Key File

Ansible & Python 3

While using Ansible 2.2 and Python 3.x, I ran into the following error:

ERROR! Unexpected Exception: No module named 'urlparse'

Workaround: 

1. Downgrade Python to 2.x

2. If there is no root level permission, use virtual env:

virtualenv --python=python2.7
Posted on April 10, 2017Categories Bash, Network, Python, TCLTags Ansible, no module named 'urlparse', pythonLeave a comment on Ansible & Python 3
Proudly powered by WordPress