putty

Unable to ignore errors using psftp

不打扰是莪最后的温柔 提交于 2020-01-14 03:43:21
问题 I wish to upload all files in C:\Users\myuser\Downloads\SFTP folder on my local Windows to a remote SFTP server's myfolder directory. Below is my command: C:\putty\psftp.exe -b C:\putty\sftp_commands.txt -l myuser -pw mypass 10.8.44.86 Here is my C:\putty\sftp_commands.txt file: mkdir myfolder cd myfolder lcd "C:\Users\myuser\Downloads\SFTP" mput "C:\Users\myuser\Downloads\SFTP\*.*" Running the command gives the below permission denied error: C:\Users\myuser\Desktop>C:\putty\psftp.exe -b C:

Executing (sudo) subcommands using Plink

允我心安 提交于 2020-01-13 19:22:12
问题 I am trying to command Linux machine from Window PowerShell. The commands are dependent on the fail/pass of the commands before. Therefore, I have to put all the commands together. I have tried multiple ways of putting commands together but at the ends I only receive the output of the first command. PS C:\Users\sams> plink -ssh -l username -pw root username@10.223.26.34 -t "sudo -i && cd /root/docker/storm-supervisor/ && ./stop-all.sh" The actual result: Only receives the output of the first

Python Connect over HTTP proxy with pysftp

≯℡__Kan透↙ 提交于 2020-01-13 13:00:50
问题 Currently, I am doing SFTP transfer using Python subprocess.POPEN and PuTTY psftp.exe . It is working, but not really clean nor transportable. I would like to reproduce the same behavior using Python pysftp, but I do not know where to input all the parameters. I have in PuTTY the following configuration: Server IP : 123.123.123.255 Server Port : 22 Connection Type : SSH AutoLogin UserName : MyUser Proxy type : HTTP Proxy Hostname : gw.proxy.fr Proxy port : 1234 Proxy Username : ProxyUser

Using numpad in Vi (Vim) via PuTTY

无人久伴 提交于 2020-01-11 14:56:30
问题 The numberpad does not work properly when using Vim through PuTTY. Instead of numbers I get y x w v u t s r q 回答1: The answer is in Numpad in PuTTY while using vi [Cialug] : In the configuration, go to Terminal->Features and check "Disable application keypad mode". Save the settings and enjoy a numeric pad that works! 回答2: I have always used this set of mappings to interpret the escape sequences as numbers when $TERM=xterm imap <Esc>Oq 1 imap <Esc>Or 2 imap <Esc>Os 3 imap <Esc>Ot 4 imap <Esc

TortoiseGit - Multiple GitHub repositories with different key pairs each

拟墨画扇 提交于 2020-01-11 12:53:13
问题 I have 3 GitHub repositories: {repo1, repo2, repo3}, each one with a different public key as Deploy key under each repository settings. On a remote Linux server (I connect to it via PuTTY from my local Windows 7 machine) I have all these repositories configured with the file: ~/.ssh/config following this guide: https://gist.github.com/jexchan/2351996 They works perfectly there, so don't worry about that. My problem is on my local computer, where I'm using Windows 7 with TortoiseGit . For each

Vim73 not picking up any color, including scheme

岁酱吖の 提交于 2020-01-07 08:29:29
问题 I had been using Vim through Putty on a windows machine for the last 6 months and everything was fine. After seeing somebody using a new text editor that had amazing colors, I decided to venture down the colorscheme path. This worked great for about 24 hours and then i decided i wanted to add a bunch of plugins which required me to recompile my VIM. After doing so (using vim73), I NO longer can get any colors in my vim. It is black and white with a foggy background. My .vimrc file has not

Git不断提示我输入密码

无人久伴 提交于 2020-01-07 01:28:59
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 我已经使用Git一段时间了,但是不断要求输入密码的人开始把我推向高潮。 我正在使用Mac OS X和GitHub,并按照GitHub的“ 设置Git”页面的 说明设置了Git和SSH密钥。 如 GitHub的SSH密钥密码页面 所述,我还向我的Mac OS X钥匙串添加了github SSH密钥。 我的公钥已在Git中注册。 不过,每次我尝试Git拉时,都必须输入用户名和密码。 我需要为此设置除SSH密钥以外的其他东西吗? #1楼 配置credential.helper 在OS X(现在为macOS)上,在 Terminal中 运行此命令: git config --global credential.helper osxkeychain 它使Git可以使用文件Keychain.app来存储用户名和密码,并从钥匙串中检索通向您的SSH私钥的密码。 对于Windows使用: git config --global credential.helper wincred 故障排除 如果正确配置了Git凭证帮助器,则macOS会将密码短语保存在钥匙串中。 有时 SSH和存储在钥匙串中的密码短语之间 的 连接 可能会断开。 运行 ssh-add -K 或 ssh-add ~/.ssh/id_rsa 再次将密钥添加到钥匙串。

ncurses: init_color() has no effect

徘徊边缘 提交于 2020-01-05 11:47:59
问题 Trying to define color pairs, I was getting strange results. All 256 colors are already defined, and attempt to change any color with init_color() has no affect. I'm using Putty with 256-colors enabled and TERM=xterm-256color (also putty-256color), ncurses 6.0 compiled with --enable-widec and --enable-ext-colors. This shows all colors are defined and the init_color() doesn't change anything even though it succeeds: init_scr(); start_color(); if (has_colors() && COLORS == 256 && can_change

mysql over SSH tunnel

旧城冷巷雨未停 提交于 2020-01-05 10:36:11
问题 I'm having an issue on both a win7 development machine, and on a windows 2008 production server with connecting to a remote Suse Linux server to mysql over SSH. I've followed the very simple instructions here. http://realprogrammers.com/how_to/set_up_an_ssh_tunnel_with_putty.html only on the last step, i'm trying to use the odbc connector that I downloaded from here. http://dev.mysql.com/downloads/connector/odbc/ trying both localhost:3306 and 127.0.0.1:3306 doesn't seem to make a difference.

mysql over SSH tunnel

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-05 10:34:05
问题 I'm having an issue on both a win7 development machine, and on a windows 2008 production server with connecting to a remote Suse Linux server to mysql over SSH. I've followed the very simple instructions here. http://realprogrammers.com/how_to/set_up_an_ssh_tunnel_with_putty.html only on the last step, i'm trying to use the odbc connector that I downloaded from here. http://dev.mysql.com/downloads/connector/odbc/ trying both localhost:3306 and 127.0.0.1:3306 doesn't seem to make a difference.