putty

Scripting over ssh through putty on windows

自作多情 提交于 2019-11-30 17:28:03
问题 I need to script a mysql restore of a linux machine from a windows machine. I have putty and I know it has ssh capability. Here is what I have: C:\Progra~1\Putty\putty.exe -ssh root@10.1.2.3 && mysql -u USER -pPASS db < /tmp/dump.sql My problem in writing a script is that putty opens a new window and transfers control there, so anything coming after putty.exe -ssh doesn't do anything. 回答1: You can use the -m option to specify a file which contains a command to run on the remote connection.

HTML code to open PuTTY client from browser

ε祈祈猫儿з 提交于 2019-11-30 14:48:56
I am trying to make a webpage which will have the entire inventory of servers that our team manages in the form of a table. I am using a simple LAMP stack and the inventory input as a CSV file. The table has three columns: Hostname, IP address and device serial number. While this works perfectly fine, I want to take this a step further and make every IP address in the table a hyperlink, clicking which will open an SSH client, which will connect to that IP address. Any cues to how this can be done? I was hoping there would be something like the the mailto: tag which opens an email client

Google Cloud SSH Keys

ぃ、小莉子 提交于 2019-11-30 14:11:12
I have set up my new server with Google Compute Engine. I added a user and their public key into the metadata in the Google Cloud console ( sshKeys ). I attempted to replace a public key in the metadata, but now the old one seems to be the only one able to ssh into my server (using PuTTY). The new one doesn't seem to be updated. Now, even if I remove the whole metadata or type gibberish text into the sshKeys field, it will still work! Could it be that it will require sometime for the metadata to be pushed to the server (my previous attempts were instantaneous)? To understand how Google Compute

vps管理中非常好用的软件介绍

℡╲_俬逩灬. 提交于 2019-11-30 12:13:11
于远程桌面连接其实Windows操作系统有自带远程桌面连接工具,或者 iis7远程桌面管理 工具,而远Linux操作系统我们一般选择Putty(如何使用Putty管理Linux系统VPS及使用wdCP快速搭建VPS建站管理系统 <https://www.wn789.com/1408.html>)。但有些系统的远程桌面工具没有添加到开始菜单或被精简,造成部分才接触服务器的朋友找不到连接工具,前段时间蜗牛发现一个很好使用的远程桌面助手,现在分享给大家。远程桌面助手宝塔研发的服务器连接工具,支持Windows和Linux操作系统连接(软件内置了Putty管理工具),可以实现多服务器同时管理,像浏览器一样切换窗口,使用起来非常方便。目前支持在Win2003/Win2008/xp/Win7操作系统中运行。   本站其他有关教程:   1.使用宝塔服务器管理软件为Linux系统服务器快速搭建建站环境   2.使用宝塔服务器管理软件为Windows系统服务器快速搭建建站环境 <https://www.wn789.com/1782.html>   远程桌面助手官网下载:   点击下载远程桌面助手最新版 <http://www.bt.cn/update/net/BtMstsc.exe>   远程桌面助使用介绍:   1.软件主界面介绍。支持Windows和Linux操作系统连接管理。   2

Copy from Putty/Vim visual mode to windows clipboard [duplicate]

假装没事ソ 提交于 2019-11-30 11:47:55
问题 This question already has answers here : Copying stuff from vim running in putty (4 answers) Closed 2 years ago . I currently have a vim session open in Putty, and I've selected everything in the file via visual mode. Normally to copy this onto clipboard I would use either "+y or "*y , but neither of those commands are working. Here's my vimrc: call pathogen#infect() set noswapfile set mouse=" set ts=4 set wildmenu set wildmode=list:longest,full colorscheme evening set expandtab set smarttab

Windows下SSH客服端PuTTY–详细使用教程(一)(转载)

佐手、 提交于 2019-11-30 10:09:55
putty使用方法,中文教程序言 杂七杂八的乱说了一些,这里把大致内容罗列如下: 最简单的使用,登录 SSH 主机 中文乱码的处理 PuTTY 常用配置的说明 复制、粘贴 保存会话 注销 自动登录用户名 自动设置环境变量 设置代理服务器 自动执行命令 备份、删除 PuTTY 的设置 PuTTY 的 X11 转发 如何用 PuTTY 建立 SSH 隧道 如何用 PuTTY 建立反向的 SSH 隧道,像个特洛伊木马一样突破防火墙 把 PuTTY 作为一个安全的代理服务器 安全的上网不被嗅探 避免 MSN 等聊天工具被监听 怎样用 PSCP、PSFTP 安全的传输文件 功能强大的 SFTP 客户端 WinSCP 用 PuTTYgen 生成密钥,登录 SSH 主机不再需要口令 Pagent 代理密钥,每次开机只需要输入一次密钥口令 Plink 简单而又迅速的执行 SSH 主机上的程序 常见问题 除了上面的这些,还夹杂了一些 PuTTY 使用上的技巧、服务器配置的一些安全建议。说起来这是一些有关 PuTTY 的使用教程,其实也就是 SSH 的参考教程,绝大多数的内容在其他系统或软件上也都是一样的。不同的是参数、配置、命令行之类的,只要会了一个,其他也就触类旁通了。 一些基本知识 如果你已经知道 SSH、Telnet、Rlogin 这是什么,就跳过这一部分,看下面的吧。 (以后补充,暂时空下)

putty, puttycm区别

被刻印的时光 ゝ 提交于 2019-11-30 10:09:45
在windows上实现telnet, ssh等工具有几个方案可以选择, 本文总结了putty + putty cm的方案, 并且简短地和 cygwin + console2方案 做了一下比较. 由于putty的安装 配置比较简单, 本文主要讨论了Putty cm的配置和中文的支持. [目录] PuTTY和PuTTYCM.txt (Created by TxtBrowser) content 1. 简介 . 1.1 putty . 1.2 putty connection manager 2. putty 3 putty connection manager . 3.1 指定putty.exe的路径 . 3.2 创建一个数据库 . 3.3 connection(连接)配置 . 3.4 接下来是 login macro(登录宏)配置: . 3.5 putty session(putty 会话)配置: . 3.6 让putty支持中文输入和显示 3. 用PuTTYcyg替代Windows命令行窗口作为cygwin的前端 figures 图1. PuTTY patch for Cygwin terminal 1. 简介 1.1 putty putty是一款运行在windows平台(貌似有其它平台上的?)上的ssh和telnet终端, 最初是由 simon tatham开发.

WinSCP connect to Amazon AMI EC2 Instance changing user after login to “root”

拜拜、爱过 提交于 2019-11-30 07:12:14
I followed instructions here carefully however I haven't get this working right. Here is what I did: Run WinSCP enter Hostname (Elastic IP of my Instance) enter username "ec2-user" enter public key file chose SCP for the protocol Under SCP/Shell settings I chose "sudo su -" Hit Login WinSCP asks me for passphrase key, Hit OK Shows up this error Error skipping startup message. Your shell is probably incompatible with the application (BASH is recommended). NOTE: This works on Putty Jay Sidri WinSCP does not support commands that require terminal emulation or user input. See: http://winscp.net

How to pass value to psftp prompt

微笑、不失礼 提交于 2019-11-30 06:45:52
I am creating a script file programmatically and call psftp.exe as follows: psftp user@hostname.com -pw password -b psftpscript.txt but it prompts for user input 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 1024 somekey] If you trust this host, enter "y" to add the key to PuTTY's cache and carry on connecting. If you want to carry on connecting just once, without adding the key to the cache, enter "n". If you do not trust this host, press Return to abandon the

Putty won't cache the keys to access a server when run script in hudson

我与影子孤独终老i 提交于 2019-11-30 05:51:50
问题 I had a simple automation process to write which needed to copy a few files from linux server to windows via SSH. This can be accomplished using putty. SSH, as part of the protocol, verifies the host’s identity and if not known to be correct, will prompt you to accept the host’s identity. When I manually connect the linux server with putty , it won’t prompt any information to accept the host’s identity. But once I put this automation process into Hudson as schedule job. The exact message was: