[Linux]使用Mac连接Debian服务器的基础配置
来源:互联网 发布:单片机控制电磁阀 编辑:程序博客网 时间:2024/05/15 22:41
配置连接服务器请参照:Linux服务器初步配置流程 Debian安装软件手册:Debian Manual Howto
安装Debian系统
镜像可以去华中科技大学镜像下载。
设置Debian下默认文本编辑器为VIM:
aptitude updateaptitude install vimupdate-alternatives --config editor
修改Debian的/etc/apt/sources.list如下,防止提示插入介质
# deb http://http.debian.net/debian/ wheezy main contrib non-free# deb http:ftp.jp.debian.org/debian sid main# deb http://security.debian.org/ wheezy/updates main contrib# deb http://ftp.debian.org/debian/ wheezy-updates main contrib# deb-src http://ftp.debian.org/debian/ wheezy-updates main contrib# deb-src http://security.debian.org/ wheezy/updates main contribdeb http://mirrors.163.com/debian/ stable maindeb-src http://mirrors.163.com/debian/ stable main
给服务器的Debian系统安装SSH,这样其他电脑就能通过SSH连接
apt-get install openssh-server apt-get install ssh
使用Mac生成SSH公钥和密钥
ssh-keygen
给Mac电脑添加ssh-copy-id
命令
sudo curl https://raw.githubusercontent.com/beautifulcode/ssh-copy-id-for-OSX/master/ssh-copy-id.sh -o /usr/local/bin/ssh-copy-idsudo chmod +x /usr/local/bin/ssh-copy-id
将生成的公钥上传到服务器
ssh-copy-id whyadmin@222.22.222.222
ssh连接Debian出现warning: Falling back to the standard locale ("C")
// 1.在/home/your-login/.bashrc里面添加: export LC_ALL=C // 2. 运行: source ~/.bashrc
配置SSH的config文件,以后直接用ssh host1
连接
Host host1HostName 222.222.222.22 User why Port 1223
6 0
- [Linux]使用Mac连接Debian服务器的基础配置
- 使用Mac OS终端连接Linux服务器
- 使用Mac iterm2连接Linux服务器
- Debian Linux tftp服务器配置
- Debian Linux tftp服务器配置
- mac连接linux服务器
- Linux(Debian)中的Samba服务器的配置
- linux debian安装配置SVN服务器
- linux debian安装配置SVN服务器
- Mac远程连接Linux服务器
- Mac 远程连接Linux服务器
- 使用Mac自带终端远程连接Linux服务器
- mac上终端使用ssh远程连接到linux服务器
- 使用debian配置网关服务器(自己)
- 使用MAC连接Windows服务器
- Mac上连接远程服务器和环境变量的配置
- linux (debian) vim的配置
- debian配置简单的vsftp服务器
- ubuntu 12.04 shell 命令下设置代理
- 我的Android心得(8)--Message & Looper & Handler
- 关于EL表达式中requestScope和param区别
- 我这两年的生活工作 2013 2014
- C++中#define用法
- [Linux]使用Mac连接Debian服务器的基础配置
- Android:数据存储
- 我是怎么利用微信月收入三万以上的!(绝对的干货来袭!)
- 设为首页 和 收缩左边栏效果
- FastCgi原理初探
- Ubuntu下解决下载问题
- 构建文件入门—ant入门指南(2)
- Qt 连接阿里云云主机上的MySQL
- VB简单应用--加法器制作