1
vote
2answers
63 views

Transfer file via SSH from server back to client

I am logged to remote server via ssh (linux) or via putty(windows). I want to copy file back to my origin machine from remote bash prompt (because of convenience). I know I can launch FileZilla or ...
0
votes
2answers
183 views

PuTTY remote command containing while loop

I am attempting to automate several common tasks that I SSH into a remote server to do. For this, I am using PuTTY and its "remote command" option (Connection > SSH) in several saved sessions. My ...
0
votes
0answers
40 views

How to detect the OS type of a SSH client from the remote OS

If I am using PuTTY from Windows to SSH to a remote OS, how do I detect what OS the SSH client is running on, from within the remote OS? I think this is probably impossible. Merely the terminal type ...
0
votes
1answer
357 views

Install linux bash script from windows to a remote linux system

I have a set of bash scripts I want to install to a remote linux system. I have created a batch file to be run on the windows host system using plink and putty to transfer the files to the linux ...
2
votes
2answers
2k views

Putty: login, execute command/change environment variable, and do NOT close the session

I would like to configure my PuTTY session in such a way that I could login to a remote host, and (a) start bash (b) change the PS1 variable (prompt content) (c) continue work in the session as ...
0
votes
1answer
38 views

Is it possible to connect to the local Windows shell with PuTTY?

I don't know of a working Windows SSH server (not one that I trust enough, yet, at any rate). Therefore, I can't simply connect to localhost on port 22 from PuTTY. I want to use PuTTY because the ...
0
votes
0answers
43 views

How to close login shell (and children of that shell) after unclean SSH exit (e.g. closing PuTTY instance)

If PuTTY window is closed without explicitly ending the session, the login shell and subshells remain in the process tree (note the script.sh was running at the time SSH connection was dropped): user ...
10
votes
5answers
645 views

Is there a command in Linux which waits till it will be terminated?

I'm trying to build a Windows batch file, which starts putty/plink with port forwarding, and nothing else. The Windows part is ready so far: start plink.exe -ssh -i key.ppk -L 1234:localhost:80 ...
1
vote
1answer
44 views

Cygwin unable to compile

I just downloaded Cygwin, I've never used it before cause I've always used putty. Cygwin is not letting me compile; I can see the files but it just doesn't let me compile and I do not understand why, ...
0
votes
3answers
188 views

Unnecessary indenting in bash

I have been trying to paste text from one file to another in bash. I'm working in Putty. To be more clear, I have a file hotel.txt with some lines of text that are indented, thus have tabs and ...
2
votes
1answer
1k views

PuTTY not sending Esc

I SSH with PuTTY from my Win7 x64 laptop to a Unix environment for my office. The problem I'm facing is very similar to this post where I cannot send an Esc character to the terminal. I first noticed ...
0
votes
5answers
2k views

Moving a file using PuTTY

I am newbie struggling to move a file on a Linux VPS using PuTTY. I can log in with a user in PuTTY at this point I can navigate to see the file I wish to move ...
1
vote
1answer
400 views

I accidentally deleted my /root folder and now my shell string is different. What gives?

I stupidly managed to delete my /root folder on CentOS. I re-created an empty /root folder and set root privs to it, but now my shell string in PuTTY is different. Whereas it used to say ...
1
vote
1answer
320 views

How to send “--noprofile” or “--norc” to bash with putty (on Windows)

How can I disable .bashrc and .profile when I log in to linux with putty from Windows ? (On *nix: ssh hostname "bash --norc --profile")
1
vote
1answer
637 views

Enable audible bell in gnu screen current window

I use putty to ssh to a ubuntu bash shell, which holds irssi in a screen session. I figure I can probably configure irssi to send system bell when certain messages show or activity happens, and I ...
0
votes
2answers
198 views

Debian + Grails console: destroys local echo of ssh session after exit

I installed grails on a virtual vagrant box of Debian Squeeze 64. the debian box base image is available under http://dominique.broeglin.fr/2011/03/26/squeeze-64-vagrant-base-box.html the grails ...
0
votes
1answer
499 views

Remap shift-tab to tab in bash/screen/putty in Linux?

Well I use vi-mode in bash via the set -o vi command. What's annoying is when I'm typing words in capital then try to complete using tab but don't release the shift-key fast enough, it brings me out ...
0
votes
2answers
276 views

Open a new ssh window

I am currently using CYGWIN, Git Bash, and Msysgit, plus Putty and I want to open a new window at the same location from one to another. Is there a command similar to start . or explorer . to open ...
3
votes
1answer
3k views

Preventing session timeout via ssh/bash/screen/etc?

On this particular server, it seems that it's configured somehow to close a session if there is no activity after a few minutes. I'm looking for a good way to prevent it from timing out via my setup ...
1
vote
2answers
362 views

What are the options to make csh behave more Windows-like?

I'm using csh via PuTTY from a Windows PC and since I'm used to having the HOME button just place the cursor at the beginning of the string (instead of inserting ~) or ctrl+arrow place the cursor at ...
5
votes
2answers
2k views

switching stopped processes in linux bash (using putty)

Accessing a remote server (Ubunty Hardy) through ssh (putty), i can stop running 'programs' with CTRL-Z (pause signal)... I can have multiple paused jobs, with I can see with the command 'jobs'. The ...
14
votes
2answers
5k views

Putty SSH: CTRL+Cursor keys don't work skip to previous/next word

When I am connected to my local Ubuntu dev server with putty (from my Windows 7 box) via SSH, the following key combinations don't work to move the cursor forward and backward on word boundaries: ...
41
votes
6answers
39k views

How to configure PuTTY so that Home/End/PgUp/PgDn work properly in bash?

The keys Home, End, PageUp, PageDown all type a ~ in my bash session instead of moving the cursor / view around. Why does this happen and which settings do I need to change? GNU bash, version ...