putty

Git Bash and Pageant are not using keys

六眼飞鱼酱① 提交于 2019-11-28 03:55:53
I've got Git for Windows (configured for MinTTY and PuTTY\plink.exe ) and PuTTY installed, and I am trying to get it to work with a Bitbucket repository. I've got my SSH key loaded, in Pageant and on the website, and yet whenever I attempt to do anything that requires pulling/pushing: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. When I run the suggested ssh -v hg@bitbucket.org it uses id_rsa but none of my other keys in ~/.ssh . Trying to use ssh-add ~/.ssh/bitbucket_rsa results in:

Unable to connect to AIX(Unix) box with SSH.NET Library - Error : Value cannot be null

ぃ、小莉子 提交于 2019-11-27 22:20:25
问题 I am trying to connect to an AIX box and execute some commands using SSH.NET library. The following is the code snipplet KeyboardInteractiveAuthenticationMethod kauth = new KeyboardInteractiveAuthenticationMethod(username); PasswordAuthenticationMethod pauth = new PasswordAuthenticationMethod(username, password); ConnectionInfo connectionInfo = new(ConnectionInfo(servername, 22, username, pauth,kauth); SshClient sshClient = new SshClient(connectionInfo); sshClient.Connect(); SshCommand

Batch file for PuTTY/PSFTP file transfer automation

二次信任 提交于 2019-11-27 21:25:13
I have a batch file for moving file from my local PC to server through SFTP. I have PuTTY installed in my system and the batch file code follows. cd C:\Program Files (x86)\PuTTY psftp open <IP> <user> <PW> cd /home/irisuser/iris/integration/dls_dlsblr_dlschnn_in_msg/in lcd d:\ put log.sh bye The above code perfectly works when I type it in command prompt. But when I double click the .bat file and run it, it's not running and asking for username and password to be entered. My aim was to automate the whole thing and I need to run it by simply clicking the .bat file. But am not able to achieve it

Copying stuff from vim running in putty

谁都会走 提交于 2019-11-27 20:17:17
问题 I am running Vim 6.3 through putty and putty connection manager. I have the mouse option set (set mouse = a). I am able to paste things from the (windows) clipboard to vim by but selecting text in vim isn't copying anything to the clipboard. Does anyone know how do I do this? Note: I can't update Vim to a newer version. 回答1: You can select some text with the mouse and then type: "*y to yank the selected text to the clipboard, then you should be able to use the clipboard content in another

How to best display in Terminal a MySQL SELECT returning too many fields?

喜欢而已 提交于 2019-11-27 19:40:22
问题 I'm using PuTTY to run: mysql> SELECT * FROM sometable; sometable has many fields and this results in many columns trying to be displayed in the terminal. The fields wrap onto the next line so it is very hard to line up column titles with field values. What solutions are there for viewing such data in terminal? I don't have nor want access to phpMyAdmin - or any other GUI interfaces. I'm looking for command-line solutions such as this one: Save MySQL Query results into text or CVS file 回答1:

Using putty to scp from windows to Linux

為{幸葍}努か 提交于 2019-11-27 19:15:59
问题 I'm trying to test some C code that I'm writing. The only issue is that the code needs to be executed on a remote machine. My laptop is pretty old, and there is no driver for my wireless card available for Ubuntu, so booting into Linux to circumvent this problem isn't an option. Here's my question: I'm using putty to SSH into the remote machine, and I'm writing my code on Notepad++. The location of my file is: C:\Users\Admin\Desktop\WMU\5260\A2.c My problem is that when I use the command scp

Best way to script remote SSH commands in Batch (Windows)

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-27 19:06:05
I am looking to script something in batch which will need to run remote ssh commands on Linux. I would want the output returned so I can either display it on the screen or log it. I tried putty.exe -ssh user@host -pw password -m command_run but it doesn't return anything on my screen. Anyone done this before? The -m switch of PuTTY takes a path to a script file as an argument, not a command . Reference: https://the.earth.li/~sgtatham/putty/latest/htmldoc/Chapter3.html#using-cmdline-m So you have to save your command ( command_run ) to a plain text file (e.g. c:\path\command.txt ) and pass that

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

故事扮演 提交于 2019-11-27 18:59:30
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: The server's host key is not cached in the registry. You have no guarantee that the server is the

Bind Ctrl+Tab and Ctrl+Shift+Tab in tmux

痞子三分冷 提交于 2019-11-27 18:20:34
I'm trying to a get a ctrl + tab and ctrl + shift + tab binding to work inside of a tmux session (I'm also using PuTTY). I already went through the pains of having to recompile PuTTY so it would send ctrl and shift correctly. After using ctrl + v , and I'm able to see that ^[[27;5;9~ and ^[[27;6;9~ are being sent for ctrl + tab and ctrl + shift + tab , respectively. Is there any way I can get these bound to next-window and previous-window inside of tmux? Edit: After some research, I'm thinking I might have to configure xterm to include those keycodes. Any idea how I would go about doing that?

Where is vimrc or vim profile for github's mingw32 shell on a Windows machine?

末鹿安然 提交于 2019-11-27 17:28:42
问题 Cygwin has a home directory where I can store a .vimrc file to set up syntax highlighting. I know on linux machines this file is usually in a home directory and that it can be stored globally (although I haven't figure out how the global thing works yet). I'm windows user (I apologize), so I use different shells for different things, and am not all too sure why syntax highlighting is not working when I launch it from the git bash shell. It works fine for cygwin and for putty. but not so much