putty

PuTTY scripting to log onto host

∥☆過路亽.° 提交于 2019-12-09 09:15:47
问题 I'm using PuTTY to remotely log onto my school's host. Upon logging in, we are required to do these steps: enter username enter password command "add oracle" command "sqlplus" enter username enter password I will be logging into this host a lot over the course of this semester and I was hoping to create a script that would eliminate the redundancy of the above steps. Ignoring the obvious security oversights of having my password in the script, how would I achieve this? I have zero experience

windows上传文件到ubuntu

六月ゝ 毕业季﹏ 提交于 2019-12-08 19:48:43
进入putty目录下 运行pscp 然后pscp 目标文件 Linux用户名@IP地址:目标文件夹 输入linux的登陆密码即可 more than one remote source not supported 出现这种情况是由空格导致的,空格删除即可 Local to local copy not supported 这种情况是由目的服务器地址少加了: 来源: CSDN 作者: 骄傲的博主 链接: https://blog.csdn.net/weixin_43384890/article/details/85983769

使用putty从windows上传文件到ubuntu服务器

眉间皱痕 提交于 2019-12-08 19:48:09
下载putty相关软件: putty.zip 将下载好的压缩包解压 这里主要用到putty和pscp两个工具 首先通过putty连接上服务器 在windows本地端打开cmd,进入到putty所在目录,我的是在F:/putty 输入pscp命令,会跳出下面界面: 之后输入命令: pscp /path/filename username@sever:/path/ 例: pscp F:/Hello/hello.txt tom@111.111.111.11:/home/hi/ 之后输入登录服务器密码,就可以将文件上传上去了 参考自: https://blog.csdn.net/stark_summer/article/details/42640757 https://blog.csdn.net/jiandanjinxin/article/details/50639262 来源: CSDN 作者: 龙黯 链接: https://blog.csdn.net/qq_38748803/article/details/82586759

Cannot compile PuTTY, Plink or Pscp on Windows due to missing Windows/MSVC subdirectory

倾然丶 夕夏残阳落幕 提交于 2019-12-08 15:18:31
I need to download and compile plink/pscp on my Windows. Since I need specific version (0.69), I searched for the tag, and checked out to that commit. In putty readme, they write that if I want to compile on windows, there is Visual studio solution: Inside the windows/MSVC subdirectory are MS Visual Studio project files for doing GUI-based builds of the various PuTTY utilities. These have been tested on Visual Studio 7 and 10. You should be able to build each PuTTY utility by loading the corresponding .dsp file in Visual Studio. For example, MSVC/putty/putty.dsp builds PuTTY itself, MSVC/plink

Putty likes to print itself sometimes in my command line

落爺英雄遲暮 提交于 2019-12-08 14:37:48
问题 So, sometimes when I am programming in C through putty connected to a linux server, after executing my C file for testing, the command line will fill with the word "PuTTY" repeatedly 30 to 40 times. Sometimes it will display the word multiple times inside of my program. Anyone else have a similar problem? I am also doing file I/O if that has anything to do with it. 回答1: When PuTTY receives a Ctrl-E (character code 5), it outputs "PuTTY" (unless you've configured it to answer with something

input second username and password in putty using batch

江枫思渺然 提交于 2019-12-08 13:32:51
问题 I would like to know how to automate an input of username and password in putty after the initial login was successful. I have a bat file connect.bat @echo off putty [user]@[host] -pw [password] After I run this, it opens a new putty window and validates the login. When successful, I am redirected not to the shell but to another login screen. Sample below. Then I need to manually input a different username and password by typing the following. [username] [ENTER KEY] [password] [ENTER KEY] To

Replace FTP with SFTP

☆樱花仙子☆ 提交于 2019-12-08 12:00:37
问题 I am currently FTP'ing file to a Unix box from a Windows server. I want to change the following section of the script and migrate the FTP process to be SFTP. @echo off echo user %user%> ftpcmd.dat echo %password%>> ftpcmd.dat echo bin>> ftpcmd.dat echo put %filetobeuploaded% %filepath%%File%>> ftpcmd.dat echo quit>> ftpcmd.dat ftp -n -s:ftpcmd.dat %host% del ftpcmd.dat :END I have PSFTP.EXE installed on my windows directory. Using that can I send the files with SFTP ? How can I replace line

PuTTY in C# for file transfer

偶尔善良 提交于 2019-12-08 11:52:01
问题 Can any one help me with a code snippet in C# for transferring a file on my local machine to a remote server using PSCP (PuTTY) transfer methodology? I would really appreciate the help. Thanks 回答1: You can use a library that support SCP like SSHNet or WinSCP. Both provide samples and tests that demonstrate how they work. With SSH.Net you can upload a file using this code (from the test files): using (var scp = new ScpClient(host, username, password)) { scp.Connect(); scp.Upload(new FileInfo

How to pass user input automatically using plink.exe

守給你的承諾、 提交于 2019-12-08 11:06:41
问题 I need to login to an SSH session using password, and then execute the user input values for a particular account. For example: PLINK.EXE -ssh ***** -l ***** -pw ***** I am able to login, now what I need to do is enter below values: Please select account to logon: "U" Press RETURN to continue or OFF to cancel session - "RETURN" There are similarly this kind of user inputs needed. Is there a way I store the "*" values in a text file and load them using Plink. I tried: PLINK.EXE -ssh ***** -l *

PuTTY PSFTP command line works as Admin, fails as User

半城伤御伤魂 提交于 2019-12-08 09:49:28
I have an interesting dilemma with PuTTY PSFTP. Set up... Pageant .60 putty .60 Used command: D:\psftp.exe -load myserver.domain.us.com -l User1 -b MyCommand Script This loads PuTTY PSFTP, logs in using the user ID with the help of Pageant and then sends a file using commands in the script. This works great while logged in as an Admin on the server. It fails while logged in as a regular user on the server: "psftp: no hostname specified;"blah blah blah. Including -v reveals no further messages. What possible delta could there be with permissions or other settings between a server Admin and