putty

主流公有云介绍、阿里云ECS、登录云主机、升降级配置、安全组策略

前提是你 提交于 2019-12-03 20:32:19
主流公有云 公有云:公有云通常指第三方提供商为用户提供的能够使用的云,公有云一般可通过 Internet 使用,可能是免费或成本低廉的,公有云的核心属性是共享资源服务。这种云有许多实例,可在当今整个开放的公有网络中提供服务。 主流公有云服务提供商 目前主流的云服务提供商有: 阿里云 腾讯云 百度云 金山云 京东云 微软云 等等许多云服务提供商。 阿里云 阿里云是阿里巴巴集团旗下云计算品牌,全球卓越的云计算技术和服务提供商。创立于2009年,在杭州、北京、硅谷等地设有研发中心和运营机构。 https://baike.baidu.com/item/%E9%98%BF%E9%87%8C%E4%BA%91 可以点击该链接了解阿里云的发展历史以及取得的巨大成就。 阿里云ECS主机 购买一台阿里云主机可以登录:www.aliyun.com ,主页有提示,可以根据自己的需求购买相应配置的ECS主机,很多地方都可以按量计费。也可以固定带宽,固定流量。 购买完成之后,可以在控制台界面看到云主机的状态 可以点击该页面中的管理按钮来关机或者重启主机,也可以点击远程连接来登录到该主机。还可以通过第三方登录软件,如putty 、xshell等工具。 使用xshell 登录云主机 如上图所示,我们为了区分连接的某台主机是做什么用的,可以填在名称一栏。将云主机的公网ip填写到主机这一栏,端口22 不用动。

阿里云ecs服务器(linux-centos7):安装调试nginx并部署web应用

大城市里の小女人 提交于 2019-12-03 18:41:57
购买阿里云ecs服务器实例 由于这里只是测试,我们就随便买一个(当然我就选最便宜的了,这里的抢占式实例测试完可以直接释放) 选择centos7.6镜像 点击下一步:网络和安全组 接下来选中开通http80端口: 后面的不管了,直接点确认订单 勾选服务条款,点击创建实例 创建成功,点击管理控制台 接下来你会在“实例”看到刚刚创建的实例 然后重置实例密码 每次更改密码都要重启实例 远程连接 点击远程连接(或者使用putty等ssh工具连接) 记住新窗口弹出来的这个远程连接密码(如果忘记,可以修改远程连接密码),然后点关闭,输入远程连接密码 输入账号,回车,再输入密码(密码无法看见),再回车,远程连接成功 安装调试nginx 使用如下命令安装nginx yum install -y nginx 再设置开机自动运行 systemctl start nginx.service systemctl enable nginx.service 现在访问你的服务器的公网地址,看到以下页面表示nginx安装调试成功 部署自己的web应用 可以使用putty的pscp将windows的文件传到Linux服务器中,运行cmd,输入以下命令上传文件(夹)到nginx默认的应用安装路径 pscp 本地文件路径 服务器用户名@服务器ip地址:应用安装路径 或 pscp -r 本地文件夹路径 服务器用户名

PSCP copy files from godaddy to my windows machine

一世执手 提交于 2019-12-03 16:19:16
问题 I want to take backup of my website which is hosted on godaddy. I used pscp command from my windows dos and try to download whole public_html folder. my command is : pscp -r user@host:public_html/ d:\sites\; Files are downloading properly and folders also. But the issue is public_html and other subfolders has two folder like "./" and "../". Due to these two folders my copy is getting failed and I am getting "security violation: remote host attempted to write to " a '.' or '..' path!"error.

工具系列——Git和TortoiseGit的使用介绍

早过忘川 提交于 2019-12-03 15:07:53
一、安装Git和TortoiseGit 首先安装Git和TortoiseGit,后者依赖前者,不多做解释。 二、创建SSH公钥和私钥 SSH key 可以让你在你的电脑和 Git @ OSC 之间建立安全的加密连接。 你可以在git Bash中按如下命令来生成sshkey ssh-keygen -t rsa -C "xxxxx@xxxxx.com" # Creates a new ssh key using the provided email # Generating public/private rsa key pair... # 目录在Enter file in which to save the key (/c/Users/username/.ssh/id_rsa): 查看你的 public key, 并把他添加到 Git @ OSC cat ~/.ssh/id_rsa.pub # ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6eNtGpNGwstc.... # 从头一直到=号结束,后面的不要 添加后,在终端(Terminal)中输入 ssh -T git@git.oschina.net 若返回 Welcome to Git@OSC, yourname! 则证明添加成功。 三、Putty和ssh介绍 在安装TortoiseGit的时候

jpegtran whole directory

回眸只為那壹抹淺笑 提交于 2019-12-03 14:23:46
I want to optimize the whole test folder with jpg images from a command line. I found this but it doesn't work: cd /home/site/html/update/test/ find . -exec jpegtran -optimize "{}" "{}.opti.jpg" "{}" \; I want to overwrite the existing images. Suggestions? Answer: find /img/path -name "*.jpg" -type f -exec jpegtran -copy none -optimize -outfile {} {} \; Answer: find /img/path -name "*.jpg" -type f -exec jpegtran -copy none -optimize -outfile {} {} \; 来源: https://stackoverflow.com/questions/15835351/jpegtran-whole-directory

Communicating with PuTTY via pipe

匿名 (未验证) 提交于 2019-12-03 09:52:54
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to capture PuTTY's STDIN and STDOUT pipes. So I open putty.exe via CreateProcess with passing created pipes but I can't read anything from pipes. My code works when I run a bat file. How can I accomplish this? Thanks //This code is from MSDN and I edited it a little #include <QCoreApplication> #include <windows.h> #include <tchar.h> #include <stdio.h> #include <strsafe.h> #pragma comment(lib, "user32.lib") #define BUFSIZE 4096 HANDLE g_hChildStd_IN_Rd = NULL; HANDLE g_hChildStd_IN_Wr = NULL; HANDLE g_hChildStd_OUT_Rd = NULL; HANDLE g

【Centos】利用Vultr服务器和namesilo布网

纵然是瞬间 提交于 2019-12-03 09:21:10
要在WWW互联网中建立自己的网站,云服务器和域名是必不可少。云服务器相当于你的铺子,也就是经营场地,域名则如同牌子,让人在dns中找到你。国内有很多一建式建站方案,但对于我来说,又要icp要比较贵。于是选了vultr云服务器和namesilo域名,两个在USA的东东来布网。这里还是要谢谢某宝,这两个地方都支持Alipay。也就是你可以直接用人民币对上面的美金结账。 一、Vultr服务器的购买 1、Vultr的官网是 https://www.vultr.com/ ,首先需要注册一个账号。这个账号是以后管理云主机的账号。对于国内的电子邮箱是完全支持的。 登录之后,先要在左侧选择Account页面验证一下的你的电子邮箱,才能解锁所有功能 2、之后在bill页面,可以用各种支付方式,包括我国享誉世界的某付宝,先给里面打钱,这里至少需要打10美金,虽然是$5一个月,但这里基本的意思就是押一付一了。也有部分只卖$2.5,就看还有没有得卖了。 3、之后在Servers页面添加云主机。这里买一个centos7主机。用centos7+nginxs建站,未来再上一个php和mysql。 本来还有更便宜的入门级的$2.5美金一个月的,但已经卖光了,没办法,好东西就是多人抢。毕竟USA是全球科技和经济发达地区,建议优先选择USA的网络节点,同时建议连接东西海岸USA最发达地区的节点,这样连接的效果比较明显

AWS - Disconnected : No supported authentication methods available (server sent :publickey)

安稳与你 提交于 2019-12-03 09:19:14
SSH to my AWS server just broke for both Putty and Filezilla. I'm making some effort for this post to be a comprehensive troubleshooting list, so if you share links to other stack overflow pages, I'll edit them into the question. Disconnected : No supported authentication methods available (server sent :publickey) The error is familiar from when I set up the connection almost a year ago. If you're setting up AWS SSH for the first time, these address the most common problems: Wrong username: Disconnected : No supported authentication methods available (server sent :publickey) Incorrect .ppk

Creating a ctrl+tab keybinding in PuTTY

大城市里の小女人 提交于 2019-12-03 08:44:29
问题 I'd like to be able to map the vim commands :tabnext and :tabprev to CTRL+TAB and CTRL+SHIFT+TAB respectively. Unfortunately, I seem to be running into the problem where PuTTY eats these character combinations. I've tried searching for information, but to no avail. I'm pretty sure this is a PuTTY thing but there doesn't seem to be any sort of help/reference area for the application. I am curious if anyone here has any experience or suggestions for figuring this out. @rmeador: try mapping the

git - Server host key not cached

匿名 (未验证) 提交于 2019-12-03 08:33:39
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I try to push changes from my local repo to a remote repo. When I type: git push origin I get the following error: The server 's host key is not cached in the registry. You have no guarantee that the server is the computer you think it is. The server' s rsa2 key fingerprint is : ssh - rsa 2048 xx : xx : xx : xx : xx : xx : xx : xx : xx : xx : xx : xx : xx : xx : xx : xx Connection abandoned . fatal : The remote end hung up unexpectedly How can I solve this? I'm using git from the command line in Windows 7. Edit When I try to do a