一、远程连接Windows机器
1) 使用Romote Desktop Connection软件,下载地址http://www.microsoft.com/zh-CN/download/details.aspx?id=18140
2)远程桌面全屏的方法:当你连接rdc到远程桌面后,只要同时按住“commond+2”两个键即可显示全屏远程桌面连接
2、在Mac机上使用git
1)
设置Git的user name和email:
$ git config --global user.name "xxx"
$ git config --global user.email "xxx@163.com"
二、生成SSH密钥过程:
1.查看是否已经有了ssh密钥:cd ~/.ssh
如果没有密钥则不会有此文件夹,有则备份删除
2.生存密钥:
二、生成SSH密钥过程:
1.查看是否已经有了ssh密钥:cd ~/.ssh
如果没有密钥则不会有此文件夹,有则备份删除
2.生存密钥:
$ ssh-keygen -t rsa -C “haiyan.xu.vip@gmail.com” 按3个回车,密码为空。
三、mac配置ssh免密登录远程服务器的方法
# 1、首先要有ssh公私钥,到~/.ssh目录下如没有有*.pub结尾文件
$ cd ~/.ssh
$ ls
id_rsa id_rsa.pub
# 如果没有,调用生成
$ ssh-keygen
# 2、将公钥(*.pub结尾的文件)上传到远程服务器
ssh-copy-id -i [公钥文件] user@host
# user是你的ssh的用户,host是服务器ip地址,此时需输入密码
$ ssh-copy-id -i id_rsa.pub admin@xxx.xxx.xxx.xxx
# 3、在mac机上调用ssh-add(mac机必须,其他机器默认不需要)
ssh-add -K [私钥文件]
$ ssh-add -K id_rsa
# 4.在mac机上测试是否生效,如果不需要密码则生效
$ ssh user@host
四、配置iTerm2
下载地址
配置插件
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
# 在zshrc找到plugins加入zsh-autosuggestions zsh-syntax-highlighting
#plugins=(git zsh-syntax-highlighting zsh-autosuggestions)
source ~/.zshrc