1) 安装openssh-server
# yum install openssh-server
2) 查看是否已成功安装openssh-server
# rpm -qa | grep openssh-server
openssh-server-5.3p1-19.fc12.i686
#
3) 修改ssh服务的配置文件
配置ssh服务的运行参数, 是通过修改配置文件/etc/ssh/ssh_config实现的. /etc/ssh/ssh_config文件的配置选项非常多, 但大部分都已经用"#"注释掉了.
#Port 22
#Protocol 2,1
配置完保存配置文件, 不过如果没什么特殊的要求这都不用配置.
4) 重启SSH服务
# /etc/rc.d/init.d/sshd restart
可能没有
service sshd restart
ssh localhost
Stopping sshd: [ OK ]
Starting sshd: [ OK ]
5) 如果开启了防火墙, 我们需要允许TCP协议的22端口通过.
# iptables -I INPUT -p tcp --dport 22 -j ACCEPT
6) 如果想让ssh服务开机就运行, 需要使用# ntsysv命令打开开机服务选项卡. 选中sshd后按"OK".
# ntsysv
为了开机启动打开
vim /etc/profile
最后一行
/sbin/service sshd start
/sbin/iptables -I INPUT -p tcp --dport 22 -j ACCEPT
7) 到这里所有工作都完成了, 可以尝试从客户端SSH登陆Fedora. 我用的是PUTTY, 一款非常好用的软件, 支持Telnet, SSH
-------------yum---------
http://mirrors.163.com/.help/fedora.html
代理
http://www.cnblogs.com/ncturtle/archive/2011/11/24/2262051.html
每行加
proxy=http://web-proxy.什么什么.com:8080
office2007破解
http://wenku.baidu.com/view/a0973911cc7931b765ce15eb.html
wget也需要代理
vim .wgetrc
http-proxy=web-proxy.什么什么.com:8080
ftp-proxy=web-proxy.什么什么.com:8080
-------------------------------ubuntu
方法一
这是一种临时的手段,如果您仅仅是暂时需要通过http代理使用apt-get,您可以使用这种方式。
在使用apt-get之前,在终端中输入以下命令(根据您的实际情况替换yourproxyaddress和proxyport)。
export http_proxy=http://yourproxyaddress:proxyport
方法二
这种方法要用到/etc/apt/文件夹下的apt.conf文件。如果您希望apt-get(而不是其他应用程序)一直使用http代理,您可以使用这种方式。
注意: 某些情况下,系统安装过程中没有建立apt配置文件。下面的操作将视情况修改现有的配置文件或者新建配置文件。
gksudo gedit /etc/apt/apt.conf
在您的apt.conf文件中加入下面这行(根据你的实际情况替换yourproxyaddress和proxyport)。
Acquire::http::Proxy “http://yourproxyaddress:proxyport”;
保存apt.conf文件。
方法三
这种方法会在您的主目录下的.bashrc文件中添加两行。如果您希望apt-get和其他应用程序如wget等都使用http代理,您可以使用这种方式。
gedit ~/.bashrc
在您的.bashrc文件末尾添加如下内容(根据你的实际情况替换yourproxyaddress和proxyport)。
http_proxy=http://yourproxyaddress:proxyport
export http_proxy
# yum install openssh-server
2) 查看是否已成功安装openssh-server
# rpm -qa | grep openssh-server
openssh-server-5.3p1-19.fc12.i686
#
3) 修改ssh服务的配置文件
配置ssh服务的运行参数, 是通过修改配置文件/etc/ssh/ssh_config实现的. /etc/ssh/ssh_config文件的配置选项非常多, 但大部分都已经用"#"注释掉了.
#Port 22
#Protocol 2,1
配置完保存配置文件, 不过如果没什么特殊的要求这都不用配置.
4) 重启SSH服务
# /etc/rc.d/init.d/sshd restart
可能没有
service sshd restart
ssh localhost
Stopping sshd: [ OK ]
Starting sshd: [ OK ]
5) 如果开启了防火墙, 我们需要允许TCP协议的22端口通过.
# iptables -I INPUT -p tcp --dport 22 -j ACCEPT
6) 如果想让ssh服务开机就运行, 需要使用# ntsysv命令打开开机服务选项卡. 选中sshd后按"OK".
# ntsysv
为了开机启动打开
vim /etc/profile
最后一行
/sbin/service sshd start
/sbin/iptables -I INPUT -p tcp --dport 22 -j ACCEPT
7) 到这里所有工作都完成了, 可以尝试从客户端SSH登陆Fedora. 我用的是PUTTY, 一款非常好用的软件, 支持Telnet, SSH
-------------yum---------
http://mirrors.163.com/.help/fedora.html
代理
http://www.cnblogs.com/ncturtle/archive/2011/11/24/2262051.html
每行加
proxy=http://web-proxy.什么什么.com:8080
office2007破解
http://wenku.baidu.com/view/a0973911cc7931b765ce15eb.html
wget也需要代理
vim .wgetrc
http-proxy=web-proxy.什么什么.com:8080
ftp-proxy=web-proxy.什么什么.com:8080
-------------------------------ubuntu
方法一
这是一种临时的手段,如果您仅仅是暂时需要通过http代理使用apt-get,您可以使用这种方式。
在使用apt-get之前,在终端中输入以下命令(根据您的实际情况替换yourproxyaddress和proxyport)。
export http_proxy=http://yourproxyaddress:proxyport
方法二
这种方法要用到/etc/apt/文件夹下的apt.conf文件。如果您希望apt-get(而不是其他应用程序)一直使用http代理,您可以使用这种方式。
注意: 某些情况下,系统安装过程中没有建立apt配置文件。下面的操作将视情况修改现有的配置文件或者新建配置文件。
gksudo gedit /etc/apt/apt.conf
在您的apt.conf文件中加入下面这行(根据你的实际情况替换yourproxyaddress和proxyport)。
Acquire::http::Proxy “http://yourproxyaddress:proxyport”;
保存apt.conf文件。
方法三
这种方法会在您的主目录下的.bashrc文件中添加两行。如果您希望apt-get和其他应用程序如wget等都使用http代理,您可以使用这种方式。
gedit ~/.bashrc
在您的.bashrc文件末尾添加如下内容(根据你的实际情况替换yourproxyaddress和proxyport)。
http_proxy=http://yourproxyaddress:proxyport
export http_proxy