首页 > 其他分享 >SourceTree SSH第一次登录需要交互确认的问题

SourceTree SSH第一次登录需要交互确认的问题

时间:2023-12-31 13:23:29浏览次数:30  
标签:cache server host putty SSH key 交互 SourceTree

问题

在SourceTree SSH配置完ssh之后向上提交代码的时候发现:

The server's host key is not cached in the registry. You
have no guarantee that the server is the computer you
think it is.
The server's rsa2 key fingerprint is:
ssh-rsa 2048 **:**:**:**:**:**:**:**:**:**:**:**:**:**:**:**
If you trust this host, enter "y" to add the key to
PuTTY's cache and carry on connecting.
If you want to carry on connecting just once, without
adding the key to the cache, enter "n".
If you do not trust this host, press Return to abandon the
connection.
Store key in cache? (y/n)

问题是没法按y。这样的话就一直没法提交代码了。

解决方案

一共有两种解决方案
1.在界面上使用命令行模式推送代码。如下:

2.初始化putty。因为source Tree好像是使用putty作为秘钥验证的工具。具体做法为:

  • 找到putty路径,默认在: SourceTree\app-3.4.12\tools\putty,进入这个路径
  • 在此处打开命令行,运行:plink [email protected]即可。
PS C:\Users\Administrator\AppData\Local\SourceTree\app-3.4.16\tools\putty> ./plink [email protected]
The host key is not cached for this server:
  github.com (port 22)
You have no guarantee that the server is the computer
you think it is.
The server's ssh-ed25519 key fingerprint is:
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
If you trust this host, enter "y" to add the key to
PuTTY's cache and carry on connecting.
If you want to carry on connecting just once, without
adding the key to the cache, enter "n".
If you do not trust this host, press Return to abandon the
connection.
Store key in cache? (y/n, Return cancels connection, i for more info) y
Using username "git".
Access granted. Press Return to begin session.
Server refused to allocate pty
Hi 578223592

标签:cache,server,host,putty,SSH,key,交互,SourceTree
From: https://www.cnblogs.com/swx123/p/17937429

相关文章

  • kubelet和flannel交互流程
    kubelet与cni插件交互流程kubelet调用cni走二进制接口并传参完成,与cri和csi走rpc不同。创建podnetns->创建容器网卡并分配ip->创建pause容器并加入podnetns。flannelcni插件工作流程flannelcni配置文件是/etc/cni/net.d/10-flannel.conflist,cni插件二进制在/opt/cni/b......
  • SpringMVC架构中Service层与Mapper层交互参数命名注意事项
    Service层代码begin、end、status为传入Mapper层getOrderSaleOp10方法的参数 GoodsSalesDTO中name、number是接收返回值的成员变量 Mapper层代码其中#{status}#{begin}#{end}与Service传入的map参数中元素名需要保持一致sql中查询的字段名需要与GoodsSalesDTO中成员变......
  • SSH 隧道(SSH Tunnel)指南
    介绍SSH隧道(SSHTunneling),又称为SSH端口转发(SSHPortForwarding),是一种利用SSH协议为其他协议或网络链接加密的方法。通过SSH隧道,用户可以安全地传输未加密的网络流量,通过远程服务器转发到目标目的地,保证了数据传输的私密性和安全性。SSH隧道主要有三种类型:本地端口转发(Loc......
  • Ajax异步交互技术
    在HTTP协议下,前后端交互有两种技术,一是同步,二是异步Ajax异步交互技术简介“AsynchronousJavascriptAndXML”(异步JavaScript和XML),是指一种创建交互式、快速动态网页应用的网页开发技术,无需重新加载整个网页的情况下,能够更新部分网页的技术。通过在后台与服务器进行少量数据......
  • Ajax异步交互技术
    在HTTP协议下,前后端交互有两种技术,一是同步,二是异步Ajax异步交互技术简介“AsynchronousJavascriptAndXML”(异步JavaScript和XML),是指一种创建交互式、快速动态网页应用的网页开发技术,无需重新加载整个网页的情况下,能够更新部分网页的技术。通过在后台与服务器进行少量数据......
  • Ajax异步交互技术
    在HTTP协议下,前后端交互有两种技术,一是同步,二是异步Ajax异步交互技术简介“AsynchronousJavascriptAndXML”(异步JavaScript和XML),是指一种创建交互式、快速动态网页应用的网页开发技术,无需重新加载整个网页的情况下,能够更新部分网页的技术。通过在后台与服务器进行少量......
  • Ajax异步交互技术
    在HTTP协议下,前后端交互有两种技术,一是同步,二是异步Ajax异步交互技术简介“AsynchronousJavascriptAndXML”(异步JavaScript和XML),是指一种创建交互式、快速动态网页应用的网页开发技术,无需重新加载整个网页的情况下,能够更新部分网页的技术。通过在后台与服务器进行少量......
  • 13PCIE与PL数据交互加速构架方案
    软件版本:vitis2021.1(vivado2021.1)操作系统:WIN1064bit硬件平台:适用XILINXA7/K7/Z7/ZU/KU系列FPGA登录"米联客"FPGA社区-www.uisrc.com视频课程、答疑解惑!13.1概述FPGA硬件加速是FPGA的重要应用,基于PCIE的硬件加速需要通过PC上位机把需要计算的数据PCIE接口发送给FPGA,FPGA......
  • 华为云耀云服务器L实例-大数据学习-hadoop前置准备1-主机名映射与SSH免密登录
     华为云耀云服务器L实例-大数据学习-hadoop前置准备1-主机名映射与SSH免密登录  产品官网:https://www.huaweicloud.com/product/hecs-light.html  今天我们采用可靠更安全、智能不卡顿、价优随心用、上手更简单、管理特省心的华为云耀云服务器L实例为例,演示单台服......
  • Vscode 配置ssh实现用vscode直接看远程服务器代码
    1、下载vscode插件下载RemoteDevelopment插件2、配置ssh文件安装完成后,在左边有对应插件,设置config的配置文件 3、ctrl+shift+p:选择Remote-SSH,确认后选择刚才配置的文件4、此时会打开一个新的窗口,按照提示一步一步执行,一般输入密码,校验成功后会提示连接到远程,选择打开......