{"comment":{"created_at":"2011-10-20T15:39:32Z","body":"HI,\r\n\r\ntoday I tested it with the development branch.\r\nI still get the same error. ","updated_at":"2011-10-20T15:39:32Z","url":"https://api.github.com/repos/knipknap/exscript/issues/comments/2470241","id":2470241,"user":{"avatar_url":"https://secure.gravatar.com/avatar/44c1e44acd4c19c79018c1ec916a2541?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"44c1e44acd4c19c79018c1ec916a2541","url":"https://api.github.com/users/micha81","id":1128432,"login":"micha81"}},"action":"created","issue":{"number":18,"created_at":"2011-10-14T14:57:15Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"Hi,\r\n\r\nI tried to execute a script over ssh with a DSA public key. Reading the error correct the script expects a RSA file.\r\nIs there a way to use DSA key files?\r\nI'm using the 2.1 tag of exscript.\r\n\r\nHere is the error i get.\r\n\r\n exscript -p ssh2 --ssh-key=ssh-key test  hostname\r\nPlease enter your user name [root]:\r\nPlease enter your password:\r\nReading key from ssh-key\r\nhostname error: not a valid RSA private key file\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python2.6/dist-packages/Exscript-DEVELOPMENT-py2.6.egg/Exscript/CustomAction.py\", line 112, in execute\r\n    self._call_function(conn)\r\n  File \"/usr/local/lib/python2.6/dist-packages/Exscript-DEVELOPMENT-py2.6.egg/Exscript/HostAction.py\", line 62, in _call_function\r\n    return self.function(conn)\r\n  File \"/usr/local/lib/python2.6/dist-packages/Exscript-DEVELOPMENT-py2.6.egg/Exscript/util/decorator.py\", line 91, in decorated\r\n    result = function(conn, *args, **kwargs)\r\n  File \"/usr/local/lib/python2.6/dist-packages/Exscript-DEVELOPMENT-py2.6.egg/Exscript/util/decorator.py\", line 117, in decorated\r\n    conn.login(flush = flush)\r\n  File \"/usr/local/lib/python2.6/dist-packages/Exscript-DEVELOPMENT-py2.6.egg/Exscript/Connection.py\", line 183, in login\r\n    self.protocol.login(account, flush = flush)\r\n  File \"/usr/local/lib/python2.6/dist-packages/Exscript-DEVELOPMENT-py2.6.egg/Exscript/protocols/Protocol.py\", line 582, in login\r\n    self.authenticate(account, flush = False)\r\n  File \"/usr/local/lib/python2.6/dist-packages/Exscript-DEVELOPMENT-py2.6.egg/Exscript/protocols/Protocol.py\", line 605, in authenticate\r\n    self.protocol_authenticate(account)\r\n  File \"/usr/local/lib/python2.6/dist-packages/Exscript-DEVELOPMENT-py2.6.egg/Exscript/protocols/Protocol.py\", line 634, in protocol_authenticate\r\n    self._protocol_authenticate_by_key(user, key)\r\n  File \"/usr/local/lib/python2.6/dist-packages/Exscript-DEVELOPMENT-py2.6.egg/Exscript/protocols/SSH2.py\", line 260, in _protocol_authenticate_by_key\r\n    self._paramiko_auth_key(user, keys, key.get_password())\r\n  File \"/usr/local/lib/python2.6/dist-packages/Exscript-DEVELOPMENT-py2.6.egg/Exscript/protocols/SSH2.py\", line 192, in _paramiko_auth_key\r\n    raise saved_exception\r\nSSHException: not a valid RSA private key file\r\n\r\nRegards\r\nmg","comments":2,"title":"ssh DSA key not working","updated_at":"2011-10-20T15:39:32Z","url":"https://api.github.com/repos/knipknap/exscript/issues/18","id":1911158,"assignee":null,"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/44c1e44acd4c19c79018c1ec916a2541?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"44c1e44acd4c19c79018c1ec916a2541","url":"https://api.github.com/users/micha81","id":1128432,"login":"micha81"},"html_url":"https://github.com/knipknap/exscript/issues/18","labels":[],"state":"open"},"legacy":{"issue_id":1911158,"comment_id":2470241}}