It looks like when we set the SSH key field as a password type it broke the data inside it and striped the new line characters. To work around this you can either set the key field as an expression and paste it in there or use an older version of n8n.
This should be changed in 0.228.0 though if you wanted to use an expression for now and change it later.