2021年10月8日

如何验证SSH的连通性

摘要: 测试连接时,您需要使用密码验证此操作,密码是您之前创建的SSH密钥密码。 打开你的终端窗口。 使用以下命令: $ ssh -vT xxx.com # Attempts to ssh to xxx.com 可能会常出现以下提示信息: > debug1: Authentication succeeded 阅读全文

posted @ 2021-10-08 16:28 jeanneze 阅读(946) 评论(0) 推荐(0) 编辑

如何生成SSH密钥

摘要: 打开你的终端窗口。 使用以下命令,将会以你的邮箱作为标签创建一个新的SSH密钥。 $ ssh-keygen -t rsa -b 4096 -C "注册邮箱,比如:zhansan@xx.com" > Generating public/private rsa key pair. 当系统提示您“输入要保 阅读全文

posted @ 2021-10-08 16:27 jeanneze 阅读(2979) 评论(0) 推荐(0) 编辑

如何查看本机ssh秘钥

摘要: 1.运行git bash 终端 2.执行命令:ls -al ~/.ssh 检查目录列表是否存在已有的公共SSH密钥。一般情况下,公钥的文件名是以下之一: > id_dsa.pub > id_ecdsa.pub > id_ed25519.pub > id_rsa.pub 3.cd ~/.ssh 4.l 阅读全文

posted @ 2021-10-08 16:26 jeanneze 阅读(3339) 评论(0) 推荐(0) 编辑

如何更改本地代码仓库指向

摘要: 1.查看本地代码指向地址: git remote -v 2.更改代码仓库指向: git remote set-url origin XXX(新代码地址https or SSH) 3.切换分支后第一次push代码到远程同名分支,需要将本地分支与远程分支关联,可执行如下命令: git push orig 阅读全文

posted @ 2021-10-08 16:25 jeanneze 阅读(167) 评论(0) 推荐(0) 编辑

如何发布npm 包

摘要: 1.查看当前登录npm用户: npm whoami 2.查看当前镜像源信息: npm config get registry 3. 切换镜像:npm config set registry http://registry.npmjs.org/ 4.登录npm账号:npm login 5.执行npm 阅读全文

posted @ 2021-10-08 16:17 jeanneze 阅读(21) 评论(0) 推荐(0) 编辑

css垂直居中的6种常用方式总结

摘要: 注:以下demo都只是针对现代浏览器所做,未兼容低版本的IE以及其他非主流浏览器。 1.单行文本垂直水平居中<兼容所有浏览器> HTML 1 <div class="button"> 2 确定 3 </div> CSS .button{ height: 50px; line-height: 50px 阅读全文

posted @ 2021-10-08 14:39 jeanneze 阅读(559) 评论(0) 推荐(0) 编辑

导航