歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Unix知識 >> 關於Unix >> FreeBSD環境下SSH的相關閱讀筆記

FreeBSD環境下SSH的相關閱讀筆記

日期:2017/2/28 11:19:06   编辑:關於Unix


一、SSH是什麼?
SSH的英文全稱是 Secure Shell,也就是“安全shell“,利用和SSHD的配對使用,可以實現數據的安全傳輸。從客戶端角度來看,SSH提供兩種級別的安全驗證。
第一種級別(基於口令的安全驗證)只要你知道自己帳號和口令,就可以登錄到遠程主機。所有傳輸的數據都會被加密,但是不能保證你正在連接的服務器就是你想連接的服務器。
第二種級別(基於密匙的安全驗證)需要依靠密匙,也就是你必須為自己創建一對密匙,並把公用密匙放在需要訪問的服務器上。
二、FreeBSD系統中SSH的基本支持
所謂的“基本支持“指的是沒有安裝openssh的ports或package時,FreeBSD系統的默認軟件配置。
SSH客戶端軟件:存放在 /usr/bin 目錄下,主要的程序有:
slogin
scp
sftp
ssh
ssh-add
ssh-agent
ssh-keygen
ssh-keyscan
SSH的服務器端軟件:
sshd 存放在 /usr/sbin
rc.d/sshd 是sshd的運行腳本,存放在 /etc/rc.d 目錄下
SSH,SSHD的一些配置文件,存放在
/etc/ssh 目錄下
ssh_config
sshd_config
moduli
三、FreeBSD系統中SSH的版本
FreeBSD使用的是OpenSSH提供的可移植版本分支,所以版本信息是:
OpenSSH_4.5p1 FreeBSD-20061110
OpenSSL 0.9.7e-p1 25 Oct 2004
p表示的就是portable,版本編號和OpenSSH,OpenSSL的正式發行版有所不同。在ports樹裡面,可移植版本和完整版本都可以找到。
OpenBSD's OpenSSH portable version
Normal OpenSSH development produces a very small, secure, and easy to maintain
version for the OpenBSD project. The OpenSSH Portability Team takes that pure
version and adds portability code so that OpenSSH can run on many other
operating systems (Unfortunately, in particular since OpenSSH does
authentication, it runs into a *lot* of differences between Unix operating
systems).
The portable OpenSSH follows development of the official version, but releases
are not synchronized. Portable releases are marked with a 'p' (e.g. 3.1p1).
The official OpenBSD source will never use the 'p' suffix, but will instead
increment the version number when they hit 'stable spots' in their development.
Copyright © Linux教程網 All Rights Reserved