sharpssh is a pure .NET implementation of the SSH2 client protocol suite. It provides an API for communication with SSH servers and can be integrated into any .NET application.windows
Download: link安全
SSH: Security Shell Protocol, Application layer prototol服务器
SCP: Secure copy or SCP is a means of securely transferring computer files between a local host and a remote host or between two remote hosts. It is based on the Secure Shell (SSH) protocol.网络
The term SCP can refer to one of two related things, the SCP protocol or the SCP program.app
sFTP 为 SSH的一部份,是一种传输档案至 Blogger 伺服器的安全方式。其实在SSH软件包中,已经包含了一个叫做SFTP(Secure File Transfer Protocol的安全文件传输子系统,SFTP自己没有单独的守护进程,它必须使用sshd守护进程(端口号默认是22)来完成相应的链接操做,因此从某种意义上来讲,SFTP并不像一个服务器程序,而更像是一个客户端程序。SFTP一样是使用加密传输认证信息和传输的数据,因此,使用SFTP是很是安全的。可是,因为这种传输方式使用了加密/解密技术,因此传输效率比普通的FTP要低得多,若是您对网络安全性要求更高时,可使用SFTP代替FTP。ssh
和ftp不一样的是sftp/scp传输协议默认是采用加密方式来传输数据的,scp/sftp确保传输的一切数据都是加密的。而ftp通常来讲容许明文传输,固然如今也有带SSL的加密ftp,有些服务器软件也能够设置成“只容许加密链接”,可是毕竟不是默认设置须要咱们手工调整,并且不少用户都会忽略这个设置。 ide
scp/sftp属于开源协议,咱们能够无偿使用不像FTP那样使用上存在安全或版权问题。全部scp/sftp传输软件(服务器端和客户端)均免费并开源,方便咱们开发各类扩展插件和应用组件。
小提示:固然在提供安全传输的前提下sftp仍是存在一些不足的,例如他的账号访问权限是严格遵守系统用户实现的,只有将该账户添加为操做系统某用户才可以保证其能够正常登陆sftp服务器。ui
http://sourceforge.net/projects/sshwindows/this
go to the installation directory “C:\Program Files (x86)\OpenSSH\bin”, execute the script like this:加密
mkgroup -l >> ..\etc\gropup mkpasswd -l >> ..\etc\passwd
小提示:通常sftp用默认的22端口发布服务就行。若是你有特殊的缘由要把这个端口改掉,请编辑C:\ProgramFiles\OpenSSH \etc\sshd_config文件,把这一行改为你要的端口,好比8029,设置完毕后须要重启openssh服务(任何配置改动都须要重启服务)。
若是遇到上述错误,请下载以下zip包,并将里面的cygintl-2.dll与cygwin1.dll复制到openssh安装目录bin\。 也能够从别的地方cygwin中拿来用,不过其中cygintl-8.dll已经更名成cygintl-2.dll。
启动openssh
net start opensshd
使用ssh进行登陆
ssh administrator@localhost
若是是第一次连接,会出现以下信息
The authenticity of host 'localhost (127.0.0.1)' can't be established.
RSA key fingerprint is xxxxxxxxxxx.
Are you sure you want to continue connecting (yes/no)?
在windows的机器上可能还会出现如下提示的机器上可能还会出现如下提示
Could not create directory '/home/UserName/.ssh'.
这是因为目录/home/UserName/.ssh不存在形成的,在下面的设置里,将会更改/home目录并建立用户目录