小编Yu *_*ong的帖子

将SSH密钥添加到GitHub的问题

我有一个似乎与GitHub使用的SSH密钥格式有关的问题.我使用Git Bash生成一个新的SSH密钥

$ ssh-keygen -t rsa -C "youremail@youremail.com"
Run Code Online (Sandbox Code Playgroud)

然后,我将密钥复制到我的GitHub帐户页面设置中的SSH部分.但是,它附带的问题通知如下

Key is invalid. It must begin with 'ssh-ed25519', 'ssh-rsa', 'ssh-dss', 'ecdsa-sha2-nistp256', 'ecdsa-sha2-nistp384', or 'ecdsa-sha2-nistp521'. Check that you're copying the public half of the key
Run Code Online (Sandbox Code Playgroud)

之后,我编辑了我的SSH密钥,最后是ssh-rsa和我的电子邮件地址.但问题仍然存在.

谁能告诉解决方案呢?

谢谢!

git ssh github ssh-keys

14
推荐指数
3
解决办法
2万
查看次数

如何将命令提示符中的Python编码保存为文件?

我刚从Python34中的一本书中输入了一个运行命令提示符的例子.

但现在我想将此python程序保存为文件以供将来使用.由于我以前从未使用过命令提示符,我也在网上搜索,但大多数都无法回答.

谁能在这里展示解决方案?谢谢.

python file save command-prompt python-3.4

5
推荐指数
1
解决办法
8735
查看次数

定义在对象中是否有括号的类有什么区别吗?

我是 Python 编程的新手,我对定义类有疑问。类在对象内有括号会有什么区别吗?

class MyFunction:
      def Method1(self):
          print('Hello World!')
Run Code Online (Sandbox Code Playgroud)

或者

class MyFunction(object):
      def Method1(self):
          print('Hello World!')
Run Code Online (Sandbox Code Playgroud)

谢谢。

python class python-3.x

0
推荐指数
1
解决办法
652
查看次数

标签 统计

python ×2

class ×1

command-prompt ×1

file ×1

git ×1

github ×1

python-3.4 ×1

python-3.x ×1

save ×1

ssh ×1

ssh-keys ×1