摘要:
Arch默认是安装有openssh,没有的安装之,然后修改/etc/ssh/sshd.conf把这几个的注释去掉#Port 22#AddressFamily any#PermitRootLogin yes然后$ sudo /etc/rc.d/sshd start如果要在外网用的话,给路由器设置转发规则,把对本机外网ip的22端口请求转发到本机 阅读全文
摘要:
#include <iostream>class A{ private: char data; public: A(){data = 'A';}; virtual void Show() { std::cout << data << std::endl; }; virtual void Display() { std::cout << 'A' << std::endl; }};class B{ private: ... 阅读全文
摘要:
在本机生成公钥:# ssh-keygen -t rsa -C "someone@host.com"提示:enter file in which to save the key(/root/.ssh/id_rsa):直接回车就可以,然后是输密码。接下复制 /root/.ssh/id_rsa.pub的内容,添加到github。 阅读全文
摘要:
yum里没有git,所以只好编译安装,在网上发现一个下载git的好地址:http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz最新版本的git 。。#wget http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz#tar -zxvf git-latest.tar.gz#cd git......#./configure#make#make install.....为解压出来的目录 阅读全文