SSH碰见的问题

 

  • Gtk-WARNING **: cannot open display:

在从bitbucket仓库向linux服务器clone项目的时候出现了一个问题:linux

(gnome-ssh-askpass:2850): Gtk-WARNING **: cannot open display:

只要在terminal里输入bash

unset SSH_ASKPASS

就能够了服务器

不过这种方法智能在当前终端有效,若是想一直有效,只须要在~/.bash_profile中添加一行:ssh

export GIT_ASKPASS=

就好了spa

 

  • scp问题

在服务器间用scp传文件的时候出现一个问题:code

Bad owner or permissions on /home/ldmc_1049/.ssh/config

这是说.ssh/config权限问题,只要修改权限就好了blog

chmod 600 ~/.ssh/config
相关文章
相关标签/搜索