Git 多个SSH密钥配置简置教程
发布时间
阅读量:
阅读量
前言
在需要为同一台计算机上的多个域名设置不同ssh密钥的情况下,即当系统中存储有多个密钥时,可以通过配置ssh config文件来实现这一需求。
- 本文仅针对Unix系列系统的相关说明进行阐述,Windows系统相关内容不在本次讨论范围内。
准备知识概述
默认配置
在计算机系统中,通常预设了一组基础配置参数,我们可从这些默认设置入手进行学习。
接下来可以查阅相关文件内容:cat /etc/ssh/ssh_config,该文件的具体内容如下:
➜ .ssh cat /etc/ssh/ssh_config
# $OpenBSD: ssh_config,v 1.34 2019/02/04 02:39:42 dtucker Exp $
# This is the ssh client system-wide configuration file. See
# ssh_config(5) for more information. This file provides defaults for
# users, and the values can be changed in per-user configuration files
# or on the com
全部评论 (0)
还没有任何评论哟~
