SSH installation configuration tutorial (1) on Windows

Author: feipeng8848

Source: https://www.cnblogs.com/feipeng8848/p/8559803.html

This site uses " Attribution 4.0 international " Creative Commons agreement, reproduced in the article clearly indicate the position of the author and source.

1. What is SSH?

Wikipedia: https://zh.wikipedia.org/wiki/Secure_Shell

Other blog: http://www.ruanyifeng.com/blog/2011/12/ssh_remote_login.html

It boils down to this: SSH (Secure Shell) is an encrypted network transport protocol, commonly used for remote login and remote file transfer. Using SSH can effectively prevent data theft tampered with during transmission. SSH remote login can be password mode, you can also use public and private key automatic landing.

SSH is a protocol, there are many implementation of the protocol, OpenSSH is one of them, OpenSSH is a free software, free of charge.

2. What is OpenSSH ( OpenBSD Secure Shell )? How to Install OpenSSH on your computer

OpenSSH is an SSH protocol implementation in OpenSSH been installed on your computer and turn on the computer after serving as an SSH server can be accessed remotely and upload and download files.

OpenSSH官网:https://www.openssh.com/

Installation and Configuration OpenSSH tutorial on the computer: http://www.cnblogs.com/feipeng8848/p/8568018.html

Knowledge References:

https://cects.com/install-configure-ssh-on-windows/

3. What is WinSCP?

WinSCP is an SSH client software, with a graphical interface, running on a Windows system, the client (non-installed SSH server, the server machine can in fact be) installed on WinSCP can use a graphical interface to connect remotely using SSH server implementation on uploading and downloading of software. Similar software as well as putty.

WinSCP official website: https://winscp.net/eng/docs/lang:chs

Installation and Configuration WinSCP tutorials on the Windows 10 computer: http://www.cnblogs.com/feipeng8848/p/8568149.html

 —————————————————————————————————————————————————————————————————————————————————————————— 

Another way within two computers connected in a local area network, were set up IP address, and then install OpenSSH on the server, the client install OpenSSH and WinSCP, configure the server and client, you can use the login password of the remote LAN connection computer, you can also manually remotely upload and download files.

However, I think so lazy people who do not love every password, and the password to let people know, is not simply take a computer will be able to log in? How to do?

Yes, using the public key free password: http://www.cnblogs.com/feipeng8848/p/8549697.html

Well, now can avoid password, the question again, this had to manually operated, can not human intervention, automatically upload the client from time to time to download something?

May, in accordance with the following content, use Expect scripts to automatically log in SSH.

 —————————————————————————————————————————————————————————————————————————————————————————— 

What 4.Cygwin that?

Cygwin is a Linux environment simulation software on Windows. Cygwin installed on a Windows computer you can use the vim editor, you can use the ls command, you can use the cat command ??????, in short, very powerful Cygwin.

Tcl tutorial section 5 and section 6 and is by means of Expect Cygwin installation.

Cygwin installed on your computer tutorials: http://www.cnblogs.com/feipeng8848/p/8555648.html

Note: Cygwin is installed on the client, the server can not be installed.

5. What is Tcl / Tk?

Tcl (pronunciation tickle) stands for Tool Control Language, Tool Control Language, is a scripting language, Expect is Tcl extensions.

Wikipedia: https: //zh.wikipedia.org/wiki/Tcl

Tcl tutorial can look at this website: https://www.yiibai.com/tcl/

Here only write a Hello World test

6. What is Expect?

Expect is an extension of one kind of Tcl, is a software tool used for automated control and testing.

Wikipedia's introduction to Expect: https://zh.wikipedia.org/wiki/Expect

Use Expect can use scripts to automatically enter the password to log in SSH.

Expect automatic login using SSH: http://www.cnblogs.com/feipeng8848/p/8559773.html

Problem: Use a script that can not use a public way?

7.SCP command

scp command is used to copy files and directories between Linux.

scp is a secure copy of the abbreviation, scp remote file copy is based on ssh command for secure login linux system.

SCP命令教程:http://www.runoob.com/linux/linux-comm-scp.html

————————————————————————

综合应用以上知识点,就能在Windows上搭建SSH,使用SCP命令在客户端(Win10)和服务器之间传输文件:http://www.cnblogs.com/feipeng8848/p/8569284.html

————————————————————————

作者:feipeng8848

出处:https://www.cnblogs.com/feipeng8848/p/8559803.html

本站使用「署名 4.0 国际」创作共享协议,转载请在文章明显位置注明作者及出处。

1.是什么SSH?

维基百科:https://zh.wikipedia.org/wiki/Secure_Shell

其他博客:http://www.ruanyifeng.com/blog/2011/12/ssh_remote_login.html

总结一下就是:SSH(Secure Shell)是一种加密的网络传输协议,常用于远程登陆与远程文件传输。使用SSH能有效避免数据在传输过程中被窃取篡改。SSH可以采用密码方式登陆远程,也可以使用公钥私钥自动登陆。

SSH是一种协议,该协议的实现有很多种,OpenSSH就是其中一种,OpenSSH是自由软件,可免费使用。

2.什么是OpenSSH(OpenBSD Secure Shell)?如何在计算机上安装OpenSSH

OpenSSH是SSH协议的一种实现,在计算机上安装完OpenSSH并开启服务后该计算机就可作为SSH服务器被远程访问和上传下载文件。

OpenSSH官网:https://www.openssh.com/

在计算机上安装与配置OpenSSH教程:http://www.cnblogs.com/feipeng8848/p/8568018.html

相关知识参考资料:

https://cects.com/install-configure-ssh-on-windows/

3.什么是WinSCP?

WinSCP是一种SSH客户端软件,拥有图形界面,运行在Windows系统上,在客户端(非安装SSH服务器端,其实服务器本机也可以)安装上WinSCP能使用图形界面使用SSH远程连接上服务器实现上传下载的软件。类似的软件还有putty。

WinSCP官网:https://winscp.net/eng/docs/lang:chs

在Windows 10 计算机上安装与配置WinSCP教程:http://www.cnblogs.com/feipeng8848/p/8568149.html

 —————————————————————————————————————————————————————————————————————————————————————————— 

两台计算机连接在局域网内,分别设置好IP地址,然后在服务端安装OpenSSH,客户端安装OpenSSH和WinSCP,配置好服务端和客户端,你就可以使用密码登录的方式远程连接局域网内另外一台电脑了,也可以手动进行远程上传下载文件。

但是,想我这么懒的人,不爱每次都输入密码,而且密码让别人知道了是不是随便拿一台计算机就能登录了?怎么办?

可以,使用公钥免密码登陆:http://www.cnblogs.com/feipeng8848/p/8549697.html

好了,现在能免密码登陆了,问题又来了,这还得手动操作,能不能不要人为干预,客户端隔一段时间自动上传下载一些东西?

可以,根据下面的内容,使用Expect脚本自动登陆SSH。

 —————————————————————————————————————————————————————————————————————————————————————————— 

4.Cygwin是什么?

Cygwin是一个在Windows上模拟Linux环境的软件。在安装了Cygwin的Windows计算机上你可以使用vim编辑器,可以使用ls命令,可以使用cat命令······,总之,Cygwin很强大。

本教程第5节和第6节的Tcl和Expect就是借助Cygwin安装的。

在计算机上安装Cygwin教程:http://www.cnblogs.com/feipeng8848/p/8555648.html

注意:Cygwin是安装在客户端上的,服务端可以不装。

5.什么是Tcl/Tk?

Tcl(发音tickle)全称是Tool Control Language,工具控制语言,是一种脚本语言,Expect就是Tcl的扩展。

维基百科:https://zh.wikipedia.org/wiki/Tcl

Tcl教程可以看这个网站:https://www.yiibai.com/tcl/

这里只写一个Hello World测试一下

6.什么是Expect?

Expect是一种Tcl的扩展,是用来进行自动化控制和测试的软件工具。

维基百科上对Expect的介绍:https://zh.wikipedia.org/wiki/Expect

使用Expect可以使用脚本自动输入密码登录SSH。

使用Expect自动登陆SSH:http://www.cnblogs.com/feipeng8848/p/8559773.html

问题:使用脚本那还能不能用公钥方式了?

7.SCP命令

scp命令用于Linux之间复制文件和目录。

scp是 secure copy的缩写, scp是linux系统下基于ssh登陆进行安全的远程文件拷贝命令。

SCP命令教程:http://www.runoob.com/linux/linux-comm-scp.html

————————————————————————

综合应用以上知识点,就能在Windows上搭建SSH,使用SCP命令在客户端(Win10)和服务器之间传输文件:http://www.cnblogs.com/feipeng8848/p/8569284.html

————————————————————————

Guess you like

Origin www.cnblogs.com/gufengchen/p/10984382.html