scrot 抓图
kde下的抓图工具

ssh初学

流浪 posted @ 2007年8月09日 08:36 in linux with tags sshclient ssh , 13523 阅读

最近注册了一个unix-center的账号,得用ssh登陆,学习了一下ssh的相关用法。lyanry大哥有篇文章简单介绍了一下ssh的基本用法。所以对于基本用法不想再说了。记一下有关ssh客户端ssh.conf的配置,以方便使用ssh登陆。

OpenSSH有三种配置方式:命令行参数、用户配置文件和系统级的配置文件(“/etc/ssh/ssh_config”)。命令行参数优先于配置文 件,用户配置文件优先于系统配置文件。所有的命令行的参数都能在配置文件中设置。因为在安装的时候没有默认的用户配置文件,所以要把需要执行

cp /etc/ssh/ss_config  ~/.ssh/config

因为配置文件是按顺序读取的,所以设置的选项会先生效,配置文件可以如下写。
假如现在我在x4100.unix-center.net上有一个名为“liulang”的帐号。而且我想要把“ssh-agent”和“ssh-add”结合起来使用并且使用数 据压缩来加快传输速度。因为主机名太长了,懒得输入这么长的名字,用“dr”作为“x4100.unix-center.net”的简称。这样的话,我的配置文件可以这样写:

Host *dr
HostName x4110.unix-center.net
User liulang
ForwardAgent yes
Compression yes
# Be paranoid by default
Host *
ForwardAgent no
ForwardX11 no
FallBackToRsh no
这样,当我输入:
ssh dr

SSH会自动地从配置文件中找到主机的全名,用我的用户名登录并且用“ssh-agent”管理的密匙进行安全验证。很方便。 :-)
 sftp也一样

sftp dr
ssh.conf 选项
CheckHostIP yes

  * 用来进行IP地址的检查以防止DNS欺骗。

CompressionLevel

  * 压缩的级别从“1”(最快)到“9”(压缩率最高)。默认值为“6”。

ForwardX11 yes

  * 为了在本地运行远程的X程序必须设置这个选项。

LogLevel DEBUG

  * 当SSH出现问题的时候,这选项就很有用了。默认值为“INFO”。

Small_feed 评论 (5)
Avatar_small
lyanry 说:
2007年8月09日 19:30

不错哈,一直也没认真学习这些细节。

Avatar_small
Hatty 说:
2008年10月25日 08:34

http://plan-b-95.zuvexry.cn http://zuvexry.cn http://hair-loss-352.zipace.cn http://plan-b-84.zuvexry.cn http://drug-46-174.zipace.cn http://zuvexry.cn http://cordarone-566.zenavo.cn http://tylenol-793.zyreloj.cn http://meditation-3.zostura.cn http://evecare.zenavo.cn http://plan-b-7.zuvexry.cn http://sleepwell-495.zuvexry.cn http://solution-20.zyreloj.cn http://aldara-838.zenavo.cn http://repaglinide.zuvexry.cn
http://solution-20-444.zyreloj.cn

Avatar_small
Word to XPS 说:
2022年12月24日 18:07

Microsoft Word, one of the most popular Office tools, may be used to produce reports, letters, apps, e-books, and even forms. Would you like to convert Word to PDF using office tools? This simple guide helps you to learn how to convert MS Word to PDF or XPS format on Windows, macOS, and iOS devices. Word to XPS Utilizing an online converter is the most practical approach to converting Word to PDF if you need to convert a smaller number of Documents.

Avatar_small
Sticky Notes for Mac 说:
2023年2月07日 15:18

Sticky Notes are kept in your Mac Device with the name Stickies Database, which can be located under the path /Library/ Stickies Database, where all of your notes from the Stickies App are saved. Sticky Notes for Mac Desktop Stickies App offers a variety of options to help you manage your Sticky Notes on desktop more effectively, and the capabilities of image addition, font modification, color, and border are conveniently accessible via the right click menu.

Avatar_small
Question Paper 2024 说:
2023年2月11日 14:59

Question Paper 2024 Every one of the students are right now sitting tight for the test Model Paper to be Download, so need to reveal to you that as per the data got from the sources as of late, Question Paper 2024 The board will deliver its Question Paper, realizing that it will be made accessible to you. Board of Secondary Education is otherwise called The Educational board leads secondary school and transitional board tests each year.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter