diff --git a/apps/assets/serializers/base.py b/apps/assets/serializers/base.py index c64b767e9..2159999c7 100644 --- a/apps/assets/serializers/base.py +++ b/apps/assets/serializers/base.py @@ -41,10 +41,6 @@ class AuthSerializerMixin: def validate_private_key(self, private_key): if not private_key: return - if 'OPENSSH' in private_key: - msg = _("Not support openssh format key, using " - "ssh-keygen -t rsa -m pem to generate") - raise serializers.ValidationError(msg) password = self.initial_data.get("password") valid = validate_ssh_private_key(private_key, password) if not valid: diff --git a/requirements/requirements.txt b/requirements/requirements.txt index 33306c712..aca226c97 100644 --- a/requirements/requirements.txt +++ b/requirements/requirements.txt @@ -47,7 +47,7 @@ MarkupSafe==1.1.1 mysqlclient==2.0.1 olefile==0.44 openapi-codec==1.3.2 -paramiko==2.4.2 +paramiko==2.7.2 passlib==1.7.1 Pillow==7.1.0 pyasn1==0.4.8