1
vote
0answers
26 views

Working git from the command line

So I use Github for Windows (that fancy GUI app) to manage my various git-based projects, but I've noticed that on my machine I can't use the command line git to do anything with my projects. From the ...
0
votes
0answers
42 views

Send command through PuTTY automatic login

I am using the following to login automatically to a remote server and then run commands listed in a commands.txt, like this: C:\path to\putty.exe -ssh adreese.ip -l user -pw Password -m C:\Path ...
1
vote
2answers
44 views

How can I graphically open and display file at the client end in Linux over SSH connection?

I am using the xdg-open file-name command to open and display file at the user end, but can't graphically open and display file at the client end in Linux over SSH connection. So please help me to ...
0
votes
1answer
111 views

Unable to execute command or shell on remote system: Failed to Execute process

On my Ubuntu virtual machine, I run: ssh windowsxp@10.0.0.2 'dir' When I tape the password, I get this error: Unable to execute command or shell on remote system: Failed to Execute process. Why ...
0
votes
3answers
65 views

Keep PuTTY inside command line

Is it possible to run a PuTTY session within cmd.exe, without using the PuTTY console? Kind of the opposite of this question: Is it possible to use putty as the UI for the Windows shell?
0
votes
1answer
84 views

How do you run a command as another user on Linux?

I have access to a linux server where I can sudo to 'foo' like this without a password: sudo su - foo Once I am the 'foo' user I am able to run a script like this: /dir/foo_user_script.sh The ...
1
vote
4answers
2k views

ROBOCOPY Copying directory from remote computer: error 'the network path was not found'

I am trying to copy a folder from a remote computer using ROBOCOPY I'm using the following: NET USE \\192.168.10.90\IPC$ /u:server\[username] [password] ROBOCOPY \\192.168.10.90\home\lgr\ ...
0
votes
0answers
63 views

How to connect remote desktop via proxy server

I'm using this script to log in a remote desktop: start ssh2 USERNAME@DOMAIN.com -L 3390:SERVER.com:3389 pause mstsc /v localhost:3390 but I can't do it in my work area. How can I define our proxy ...
0
votes
1answer
25 views

Full /dev/sda3 partition on server

I am a super beginner with ssh and the command line and I need to get our website server back online. It has crashed because our /dev/sda3 partition is full. Need help accessing that area so that I ...
0
votes
3answers
128 views

Continue SSH background task/jobs when closing SSH or when Shell is disconnected

I am running an MPI program with SSH secure shell. Due to Wi-Fi disconnection, my la[top looses connection with server and causes failure of running process at server. As per above suggested ...
1
vote
2answers
64 views

What is a command-line equivalent of pressing a key on remote computer via ssh

What are the options to target specific keys on a remote computer and execute the equivalent of virtually pressing them from the terminal via ssh (what would normally be a user pressing them)? ...
2
votes
2answers
807 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
2answers
43 views

Is it possible to get SSH to forward empty arguments?

I'm trying to execute a remote script with SSH, and this script changes its behavior depending on whether or not a specific argument is empty. Here's a minimal example, where I created a simple tmp.sh ...
0
votes
1answer
633 views

PuTTY - When press Up arrow to show command from history, it forces me to edit command in vi? How to change?

When I am in PuTTY, and I execute a bunch of commands, I often want to use the same command I just used. So I press the "Up" arrow. The last command now shows up, but I want to edit it a little. I ...
0
votes
0answers
89 views

SSH into current Windows session

I need to be able to SSH into my Windows 8.1 laptop but into the current session, meaning I need to be able to start programs on my laptop sort of like VNC except from a CLI. Does anybody know how to ...
1
vote
0answers
146 views

Vagrant won't let me access Virtual Box's Guest window

I am a big Linux and Vagrant newbie, so please excuse my inexperience. So, I have a Slackware vagrant box. When I edit the Vagrantfile with this code: config.vm.provider "virtualbox" do |v| v.gui ...
0
votes
0answers
67 views

Instal SSH server using command line commands

There is a windows server with running HTTP and FTP server. I have access to command line because I've ran HTTP server under administrator account, however it's much more comfortable to run the ...
0
votes
1answer
873 views

Running commands as another user on their machine via ssh?

As part of my normal workflow I ssh into another user's machine, switch user to them, run a command, then exit out to my own machine again: ssh hostname sudo su user runcommand exit exit Is there a ...
1
vote
2answers
186 views

Long-running SSH command hanging - better strategy?

I have long-running command being executed over SSH. Every so often, the command seems to hang and stop getting any output. The command is still running on the other machine (in fact, if I Ctrl+C ...
0
votes
0answers
127 views

Getting Failed to get a pseudo terminal: No space left on device error

I have to run a large amount of procceses sshpass with php in screen (over 5000) and after 1000 I observed that the system is very slow and won't continue executing the whole process. I debugged a ...
0
votes
2answers
56 views

Overwraping lines when using ssh by osx terminal

I'm using ssh command from osx terminal to connect my centos remote server. If I type long string and want to go next line, the characters don't go to second line but come back the first line left ...
2
votes
1answer
141 views

How to get a bash prompt in a ssh tunnel with rsa keys?

After setting client and server with the public keys and allowing PubKeyAuthentication yes, I issue the following command and get a shell that waits indefinitely. mad@amd:~> ssh -T ...
1
vote
3answers
342 views

Moving files over SSH and delete on source after successful final copy

I have a folder of ~200 000 files with a total size around 300 GB that I need to transfer over an SSH connection to a remote host. I'm looking for a way to have the local files deleted after it's been ...
1
vote
1answer
94 views

How can I enable command line history on a remote Ubuntu terminal session?

When logging into a remote Ubuntu session using ssh, my command line history, which I'd usually access on my local terminal with the cursor keys is replaced with ^]]A ^]]B characters etc. How can I ...
0
votes
1answer
87 views

Lazy ssh key prompt for command line

My question is (very) similar to lazy prompt for ssh public key passphrase but the answer provided there (using GNOME keyring) doesn't really fit the bill (I'd rather have no reliance on X or any ...
6
votes
1answer
193 views

xargs --replace/-I for single arguments

I'm trying to use xargs to run a command for each provided argument, but unfortunately the --replace/-I flag doesn't seem to work properly when conjugated with -n. It seems that {} will expand into ...
0
votes
1answer
168 views

ssh: execute privileged command when a non-root user logs in?

I am trying to run a command/script that requires root privileges when a non-root user logs into ssh This unfortunately means I cannot use ~/.bashrc or /etc/bashrc I also tried /etc/ssh/sshrc but ...
1
vote
2answers
53 views

Closing a (remote) linux command-line interface

If I run code (e.g. an executable) on a Linux command-line interface and then close the interface, what happens? Does the executable keep running in the background? What if it requires user-input? Can ...
0
votes
1answer
40 views

Interface (semi) graphically with SSH

Is there any way I can use the ssh command to interface somewhat graphically throught the terminal. Example: I have my laptop while I'm lying in bed. I want to watch the colbert report on my desktop ...
0
votes
0answers
844 views

FTP Not Connected - Can't input user credentials

I'm trying to download a file from a Linux server via FTP from Windows command line. I've successfully downloaded the file with FileZilla (same server, same file), but I want to do it in cmd.exe. ...
1
vote
1answer
957 views

PuTTY - Display whole server output (screen command)

I am using PuTTY to administrate a Minecraft server on a remote Linux machine. I do not own the server but I have an SSH account. The server has a console window which can be accessed with the screen ...
1
vote
1answer
65 views

Network communication between three computers using SSH

Say I'm on computer A and I use SSH to get a console on computer B. Then through this SSH console I copy files from computer B to computer C. ME (Computer A) ...
1
vote
2answers
1k views

Using PuTTy commandline for downloading file through SSH

I am investigating various options for writing a program that can automate download of files on a SSH server. I need it to auomatically log in, navigate to different directories and download all files ...
1
vote
1answer
134 views

Text no longer shows after killing program, using tmux

I'm running a Minecraft server and whenever I "sh rtoolkit.sh" to start the server, everything works fine however once I stop the server and return to the command line ready to enter a command, text I ...
1
vote
1answer
221 views

How can I start a process over SSH such that it will continue to run after I disconnect?

XBMC occasionally crashes on my media server. It's a pain to bring down the media server because I have to manually restart a number of services each time. I'd like to be ablle to start XBMC from an ...
0
votes
1answer
110 views

Send bash profile for ssh login

At my work, I ssh into a lot of Linux boxes (using MTPuTTY on win 7, though I can use anything if need be, up to and including dual booting Linux). We are not set up so that people's home directories ...
4
votes
4answers
42k views

How to run a command file in PuTTY using automatic login in a command prompt?

I am using the following to login automatically to a remote server and then run commands listed in a commands.txt, like this: C:\path\to\putty.exe -load "[Sessionname]" -l [user] -pw [password] -m ...
1
vote
2answers
374 views

Difference between running commands locally vs using SSH to make remote commands

I am trying to SSH into a remote machine, and run a .ksh file on a that machine to run a Java program. If SSH into the machine with a tool like Putty, and run this command: cd ...
1
vote
1answer
60 views

Are there situations in which ssh -t shouldn't be used?

Working within a framework commands are issued to remote machines using ssh. Recently the -t option was added to the command in order to get it to work properly with sudo. However this option will ...
0
votes
2answers
200 views

I logon via ssh and the first command is always screen. Can I make it either reconnect to same sesson or make a new one if one does not exist?

Basically what I want to do is something like this: screen -session-name=mydefaultscreen and if the 'session name' of mydefaultscreen doesn't exist, it creates it. if it does exist already then it ...
2
votes
2answers
2k views

Install Cygwin SSH Client without SSH server

I am trying to use SSH from the Windows 7 command line as a client only. I CANNOT use a GUI. Is Cygwin the best (easiest) option? If so, how do I remove the server capabilities as this ...
5
votes
3answers
29k views

Command Line SSH restart Mac OSX Mountain Lion

How can I restart the SSH service via the command line on Mac OSX Mountain Lion please? Using ps aux | grep 'ssh', I was able to deduce that the process is most likely /usr/sbin/sshd. From here I ...
1
vote
1answer
204 views

Platform independent SSH client? [closed]

I am looking for an ssh client that can run from a windows terminal (cmd.exe) or a bash shell with no difference. That means that cygwin would not work (not the original cmd.exe process). This client ...
7
votes
5answers
6k views

Windows CLI SSH client? [closed]

Is there an SSH client for Windows, that can be ran purely from the CL only? That is, I can launch it, and there will neither spawn a new command window nor will it launch an independent GUI. The SSH ...
5
votes
2answers
5k views

Enable SSH on a Mac in single user mode

I have an iMac that I can access only in single user mode, because of serious hardware damage. I attached to it another computer with an Ethernet cable. I would like to login remotely to the iMac ...
0
votes
1answer
371 views

SSH to drive letter in Windows 2003

I have a Windows 2003 server running a SSH server (WRQ Reflection), how would I ssh to it and specify a specific drive letter? (like the D: drive) ex: from another workstation: ssh ...
1
vote
3answers
2k views

How do I disable the PuTTY bell via a command line parameter?

What parameters would you have to pass, in order to disable the PuTTY bell via the command line?
6
votes
3answers
971 views

Linux CLI Connect Manager?

I am looking for a connection manager for Linux that runs in the CLI. To be clear, by connection manager I mean a program that allows you to create, save, and quickly launch remote connections. ...
2
votes
2answers
665 views

How to remove files based on their extension using ssh

I need to removed files in my folders that ends in .txt using ssh. This is what I have tried so far: find /models/ -name *.txt" -type d -exec rm -rf {} \; Inside these main folder model I have ...
0
votes
1answer
141 views

Terminal shortcuts not working on remote machine

I know this is some kind of setting issue but I can't remember how to resolve it. Basically I'm SSH'ing into a remote machine (Ubuntu) and short cuts such as up, history, tab etc. do not work. Can ...