I'm newbie using ssh_key
in fabric. After I follow the instruction in Using an SSH keyfile with Fabric, in my code:
import os
from fabric.api import *
env.hosts = ['host.name.com']
env.use_ssh_config = True
env.user = "root"
env.key_filename = '/root/.ssh/config'
def local_uname():
local('uname -a')
In file config, there is my id_rsa.pub
key. I get an error like this:
File "paramiko/paramiko/config.py", line 68, in parse raise Exception("Unparsable line {}".format(line))
Exception: Unparsable line
Can anyone help me, please?