putty

emacs 24 on windows 7, tramp cannot find plink program

邮差的信 提交于 2019-12-21 20:26:11
问题 I am trying to use Emacs 24.2 with Tramp on windows 7 to remotely edit files on a linux server. I installed the Putty suit program and OpenSSH. I also placed the plink.exe in the putty suit into the bin folder under the emacs 24 folder, and added the folder emacs24/bin into the PATH environment variable. However, when I try to access the remote file from emacs with the command in the minibuffer: /username@host:filename, I get the following error message from emacs: plink is not recognized as

execute sudo command on linux from plink.exe[windows]

喜夏-厌秋 提交于 2019-12-21 16:21:44
问题 If I execute the plink command plink user@192.168.1.12 sudo nano /etc/hosts Upon typing the password when prompted, I am getting sudo: no tty present and no askpass program specified Sorry, try again. sudo: no tty present and no askpass program specified Sorry,try again. sudo: no tty present and no askpass program specified Sorry, try again. sudo: 3 incorrect password attempts How to execute the sudo command from plink? Or is there any alternatives? 回答1: i know that the question is old but

Save PuTTY ouput to file from command-line

泄露秘密 提交于 2019-12-21 03:52:42
问题 Is there any way to save the PuTTY output to a file using the command line? I know this is easily done using the GUI but in my case it has to be done automatically. What I'm working on: User clicks batch file -> starts PuTTY, automatically connects to my device over SSH and runs a bunch of commands -> PuTTY should save the output to a file . The last part I can't get working. Is there any command to do this? 回答1: This can be done with putty. The answer is little late considering the time the

SecureCRT/PUTTY中使用VIM中文乱码问题

非 Y 不嫁゛ 提交于 2019-12-21 00:00:41
如果使用SSH终端SecureCRT (PUTTY也一样)程序连接linux服务器,对于服务器返回的中文字符默认情况会显示乱码,解决方法很简单,打开会话选项对话框,找到外观,把字符编码改成你服务器上使用的编码方式即可,一般为UTF-8。 不过,我这里遇到了点问题是关于一个UTF-8的文档,使用cat可以正常显示中文,使用vim打开却显示为乱码,看来肯定是vim的问题了。 经过查找和尝试,设置一下vim的内部编码格式得到解决: 设置后: 另,转一篇关于vim编码的文章 原文: http://edyfox.codecarver.org/html/vim_fileencodings_detection.html 在 Vim 中, 有四个与编码有关的选项, 它们是: fileencodings 、 fileencoding 、 encoding 和 termencoding 。 在实际使用中, 任何一个选项出现错误, 都会导致出现乱码。 因此, 每一个 Vim 用户都应该明确这四个选项的含义。 下面, 我们详细介绍一下这四个选项的含义和作用。 1 encoding encoding 是 Vim 内部使用的字符编码方式。 当我们设置了 encoding 之后, Vim 内部所有的 buffer、 寄存器、 脚本中的字符串等, 全都使用这个编码。 Vim 在工作的时候,

Using pscp and getting permission denied

别等时光非礼了梦想. 提交于 2019-12-20 17:26:52
问题 I'm using pscp to transfer files to a virtual ubuntu server using this command: pscp test.php user@server:/var/www/test.php and I get the error permission denied. If I try to transfer to the folder /home/user/ I have no problems. I guess this has to do with that the user I'm using doesn't have access to the folder /var/www/. When I use SSH I have to use sudo to get access to the /var/www/ path - and I do. Is it possible to specify that pscp should "sudo" transfers to the server so I can get

Create a PEM from a PPK file [duplicate]

情到浓时终转凉″ 提交于 2019-12-20 08:39:39
问题 This question already has answers here : How to convert SSH keypairs generated using PuTTYgen (Windows) into key-pairs used by ssh-agent and Keychain (Linux) (8 answers) Closed 4 months ago . So there are plenty of tutorials on how to convert a PEM to a PPK using puttyGen. However my issue is that my windows machine had the only PEM copy and I converted it into a PPK and deleted it. Now I need to figure out how to convert a PPK into a PEM so that my mac can ssh into the server. I still have

how to paste to vim when using putty

喜夏-厌秋 提交于 2019-12-20 08:31:36
问题 I am using putty to connect a remote host and editing via vim. I meet a trouble when I try to paste something to vim. That's, I copy something to clipboard in my local host and want to paste it to the vim in the remote host. How to do that? ps: I am using putty! So, I open a vim window via putty. The very need is that I want to copy something in my local host and paste it to the vim editor opened by putty. That's all. Thanks! 回答1: Try with Ctrl + Shift + V or with middle click with a 3 button

Got a minus one from a read call

爱⌒轻易说出口 提交于 2019-12-20 03:14:34
问题 I connect to a database with read only access using SQL developer. It's a TNS connection. I use a tnsnames.ora, forwarding port script and SQL Developer. In the past, occasionally, when connecting, I get a error message Got a minus one from a read call. Vendor Code 0 If I do a reboot, it goes away. Another friend suggested changed the forwarding port which worked for him. I recently upgraded to a new computer and now it seems that I am getting the error message consistently. Reboot or

PuTTY免输密码自动登录Linux

青春壹個敷衍的年華 提交于 2019-12-20 02:48:03
1.使用PuTTY安装目录里的puttygen.exe工具。先点“生成(Generate)”,然后随意移动鼠标直到进度条填满,即可生成密钥 公钥部分:把上边那一段文字全选->复制备用。(不要点击“保存公钥(Save Public Key)”,点那个保存的公钥没有用!) 私钥部分:点击“保存私钥(Save Private Key)”,保存一个.ppk文件。 注:别给密钥文件加密码——加了密码,每次使用.ppk文件时就都需要提供,就背离自动登录这个目的。 自动登录 将公钥和私钥分别告知linux和PuTTY,就可以实现自动认证。 公钥文件:放在linux的一个文件里。 请先用PuTTY,输用户名密码登录linux。使用命令 nano ~/.ssh/authorized_keys 或者 vi命令 vi ~/.ssh/authorized_keys 编辑authorized_keys文件。——通常这个文件不存在,nano或vi会打开一个空文件。 (如果没有.ssh文件夹 ,可能是你没有用root账号ssh登陆过,登陆一次应该就会自动生成了。) 把刚才COPY下来的公钥粘到这个文件里去。(PuTTY中按右键是粘贴。注意不要 人为 换行.保持原来生成的样子) 私钥文件:提供给PuTTY。 每次PuTTY登录时,在“连接 -> SSH -> 认证”选项中,“认证私钥文件”选择刚才的

PHP script is killed without explanation

隐身守侯 提交于 2019-12-20 01:48:05
问题 I'm starting my php script in the following way: bash cd 'path' php -f 'scriptname'.php There is no output while the php script is running. After a time, the php script responds with: Killed My idea is that it reached the memory_limit: ini_set('memory_limit', '40960M'); Increasing the memory limit seemed to solve the problem, but it only increased the edge. What exactly does that Killed phrase mean? 回答1: Your process is killed. There could be a multitude of reasons, but it's easy to discard