Skip to content

Commit 622984f

Browse files
committed
Accept ECDSA keys in keys:add
Fixes #1262
1 parent 546d2bb commit 622984f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

client/deis.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1253,7 +1253,8 @@ def _parse_key(self, path):
12531253
name = path.split(os.path.sep)[-1]
12541254
with open(path) as f:
12551255
data = f.read()
1256-
match = re.match(r'^(ssh-...) ([^ ]+) ?(.*)', data)
1256+
match = re.match(r'^(ssh-...|ecdsa-[^ ]+) ([^ ]+) ?(.*)',
1257+
data)
12571258
if not match:
12581259
print("Could not parse SSH public key {0}".format(name))
12591260
sys.exit(1)

0 commit comments

Comments
 (0)