pem每当我使用这个密钥文件试图登录时,都会给我一个错误";加载键";abc.pem":无效格式";我的文件看起来是这样的,它不是完整的密钥文件,只是其中的一部分,所以我需要用新行替换字符。请帮助
-----开始RSA私钥-----MIIEogIBAAKCAQEAlyOrvR1uMCc+cPwWJ6dIFg0AvPdtOxJuKU13cC4XZVOBHESf\n31kmTp+GiKYLZ/0RhLDHqYCXqGVtM1v3OR7ccpktxNDzlNb0g5pV7dSjeaFOcJde\nix7q0J9WLeSPCHK7GtcrjMzNZU12Fiu3bQ4ulSCu6N7SQGK/WGzsACiWyij7Rm\nCLqR96Efu8+hMubshuGeHsnYdkAoiVoqtVofehILQnFwtllphggqPGQ3olx3/ygS\nMWb+rS0cGffLGWOWNWP17xolvxuDnfWNjdYbQ2KeT8r9jzl6A/f9qszh5buwFoA\nT7Zsqbfcw/8sNepxRNeQMrwVzN/3s01v18d63QIDAQABAoIBAD3UD9uLgJoeU8Lw\nvTd3jVvH8fdb2MmDnqEy2ZuAn32KDZU81ZIO7EbZp7WbB6uAsXvvvZ0vx9rRszyB\ncL9jSpdu5nRPbnYDAYAc0O48QKvvOyGAKuMKwNCbfivEBmdUWAqA34X3+kZoy9zV\n2OKbOyGulNSh6jtRcER7dMdjcSY6McgzP2oZNfe6eRpPFNszV9lQd/6A/2BVzBXg\nBhh/kf2scVskleHRSQgaWiImN2GrerDnmz 7qVdReDjxfvAUnKVoGMnhawHHM\nYXvrzx47+UnEukJ1y48bbIzxXibjThfLC99MeS3JJuUvjpWeSc/Ss6+sHRcwhWiL\ns0D109kCgYEA5nk/9K75TCUzG+61ihtYgQ/XY0VO0Yb9D8o/rnFCmpbMVJf9kP-----结束RSA私钥-----
试试这个:
echo 'anbnc' | sed 's/\n/n/g'