SSH (Secure SHell) is a protocol for running commands on a remote computer.

learn more… | top users | synonyms

1
vote
3answers
77 views

How do I start a server via ssh and have it run after I log out?

I ssh into a virtual server and start up a web server. Everything runs as expected. But when I close my terminal on my laptop, the process dies on the virtual server. How do I fix this?
-1
votes
1answer
47 views

I cannot use yum command and ssh after mount drive.(CentOS)

As the title above, I cannot use yum command after I mount like below. mount /dev/xvdb3 /usr Filesystem Size Used Avail Use% Mounted on /dev/xvda ...
1
vote
1answer
34 views

log into a machine through another, with (de)compression at the ends only [duplicate]

I have looked all around but couldn't find the answer to a very simply question: I would like to log into machine C from machine A, passing through machine B. However, B is slow, so I would also like ...
6
votes
3answers
258 views

Remote ls on multiple machines

I want to connect to multiple machines specified in a file and perform 'ls' there. That's what I've come up with: for machine in $(cat machines) do echo "Connecting to " $machine ssh $machine ...
1
vote
2answers
54 views

Attach to an existing ssh tunnel

I have an existing ssh tunnel which connects machine A to C over B. #user@A: ssh -N user@B -L 9999:C:9999 Is there any way to create a new ssh tunnel on D and attach it to the existing tunnel so ...
2
votes
2answers
70 views

How to change the user timezone?

I know that (for example in Debian) one could use dpkg-reconfigure tzdata to change the timezone of the system but I am wondering how one could change the user timezone (if Linux/Unix supports such an ...
0
votes
1answer
18 views

Can't terminate PHP daemon process

I've started a PHP daemon process via SSH with php ./my-script.php --daemon Now I want to quit this process, but I can't. It's still active in the foreground of my shell and I've hit CTRL + C ...
1
vote
1answer
64 views

Directx application using wine over ssh -x

I'm trying to run a Windows app (Artemis video game - server mode) on my archlinux server. As it is an windows application I have to run it using Wine. As I'd like to be able to launch the server ...
0
votes
1answer
35 views

Connect to LAN resource via ssh tunnel

I have the following problem. From machine A I connect to machine B over the internet via ssh and port forwarding. Machine B is part of my local network and has connection to machine C which acts as a ...
4
votes
2answers
136 views

Find which ports a program access

I have a program that tries to connect to a server on start-up on a unknown port. I need to find out which port the program accesses to enable a ssh tunnel. I tried netstat but since the connection ...
2
votes
1answer
52 views

Creating a linux user with limited privileges for ssh tunnelling

I am following this post to create ssh tunnel to mysql. The details description of my application scenario is given in my other SOQ. I exactly followed these steps to create a user: useradd -s ...
0
votes
1answer
34 views

Need to grant two users to an AIX server to just one folder [duplicate]

Ok, in our environment, most users (including myself as one of the unix admins) don't actually have admin rights directly on the aix servers. We login to a front unix server as ourselves without root ...
-1
votes
1answer
63 views

Double port forwarding - SSH

NOTE: I'm not explaining why I want to do this. But here is the requirement. There are 4 hosts. Host A, Host B, Host C, Host D Host A is running some application which can be accessed at port 8001 ...
3
votes
2answers
120 views

Time running a Ruby script is different locally than over SSH

Has anyone else seen this behavior? I created a simple Ruby script for giggles to see how fast it would count up on a couple machines I have. Here's the source: for n in 1...1000000 do ...
5
votes
1answer
97 views

Cannot start xterm over ssh after several successes

I am running some MATLAB scripts on the command-line of a remote computer using ssh. These scripts launch 5 xterms that are forwarded to me via ssh (using the -X option). At the moment I am debugging ...
31
votes
1answer
950 views

redirect sound (microphone) via ssh, how to telephone via ssh?

How can I redirect the microphone of one computer to listen to it on another computer via ssh? Which is the right device or which is the right command line? Some years ago it was easy and fun to ...
5
votes
2answers
72 views

Serve Internet to remote machine via SSH session?

The machine via which I'm SSHing to the remote/host machine (same network/LAN) has access to the Internet but the host doesn't. Running updates and installing packages on the host gets quite ...
-1
votes
1answer
36 views

How to enable someone to SSH to my server from Windows? [closed]

I want someone from windows to log in into my server using SSH, so he can edit files and install things. Is there a step to step how to do it? I need to: Create his user account. Configure it, ...
2
votes
0answers
60 views

Autofs home directories with passwordless logins

I want a setup where a user home directory is mounted on login (autofs). This is working with password based authentication. However, I want passwordless authentication, by generating public keys. ...
1
vote
2answers
68 views

Denyhosts: how to always allow certain known users?

With Denyhosts, how can I "whitelist" a known good user by username plus the fact that they have a valid RSA keypair (or in combination with some other known fact about the user such as MAC address)? ...
1
vote
2answers
250 views

Convert Amazon .pem key to Putty .ppk key Linux

I have generated and downloaded a private .pem key from AWS. However, to use Putty in order to connect to the virtual machine, I must have that key in .ppk format. The process of conversion is ...
1
vote
2answers
45 views

Where do I put the private ssh key?

I have set up a key pair and they work fine if I use the -i <privateKey> switch. Where should I put the private key such that I can just type ssh my.remote.host without using -i? I tried ...
2
votes
2answers
59 views

Ctrl-space not getting through ssh

I am on windows 8 using GIT bash to access a remote server via ssh. When I press Ctrl+Space in emacs running locally in console (emacs -nw), everything works as expected. However, when going over ssh, ...
1
vote
1answer
44 views

Give an access to Internet to a server reachable by SSH but where Internet is blocked

I can use my home computer A to connect by SSH to a server B where access to the external network is blocked. In other words, all requests to Internet from B throw an error: Network is unreachable. ...
5
votes
2answers
170 views

Writing a “telnet server” type program that uses SSH instead of telnet

So people have written server programs using telnet in which the user simply does telnet server.com and this connects them to the server program, which then provides them with a textual program they ...
2
votes
3answers
124 views

Linux SSH logging via PUTTY

I have Linux console, managed from Windows. Can login to Linux console from MSTSC service of Windows, as xrdp is installed on Linux. However I cannot login via Putty with SSH connection. It's ...
3
votes
2answers
59 views

Remote executing Magic Sys Rq

Is it possible to execute Magic SysRq keys on remote machine, using SSH? For example I'm trying to run like this: xdotool key Alt+Sys_Req+H But I do not see any help in console, also in ...
4
votes
2answers
48 views

Why are rules not combining in an ssh config file?

It seems like the following would work as expected, i.e., that the second rule, having a hostname that matches the first rule, would apply it. Host *.hostname.com User myuser IdentityFile ...
3
votes
1answer
98 views

Remote SSH Tunnel not working with certificates

I need reverse port forwarding via SSH to my server, such that on the server I can connect to a localhost port, which then is forwarded using the SSH tunnel to my local server. My local system is ...
3
votes
1answer
54 views

variable expansion within command substitution over SSH bash 4.X

I want to do this ssh ${w100user}@web100 'ls -l "$(grep "${1}" /etc/pure-ftpd/pureftpd.passwd|cut -d':' -f6)"' Which obviously performs an ssh session to server web100 as w100user and then greps ...
2
votes
2answers
51 views

What's ssh port forwarding and what's the difference between ssh local and remote port forwarding [duplicate]

I feel confused about ssh port forwarding and the difference between ssh local and remote port forwarding. Could you please explain them in detail and with examples? Thanks!
3
votes
3answers
289 views

What is the right file permission for a .pem file to SSH and SCP

I have tried to SSH into my AWS ubuntu server and copy the directory to my local machine. Throughout the process I experience different file permission errors (noted below). Is there one specific ...
1
vote
3answers
35 views

How to move files between servers with PubKey authentication?

I have two servers and for both I'm using PubKey authentication only. Can I somehow scp files between them (with private key being only on my local machine?) ? Can I somehow use my private key for ...
0
votes
0answers
23 views

How to allow user to only rsync/download only one directory through SSH [duplicate]

What I want to do is to give to user a simple script to run, that will sync some directory from my VPS to their machine, authentication would be done by using pubkey, and I would like to have control ...
1
vote
1answer
73 views

Setting the bash SHELL for remote openSSH connections?

I am connected to a Freebsd 10 -STABLE server with SSH from my office box but when I trying to work inside the session I encounter these problems: although I did chsh for every user in said server ...
3
votes
3answers
119 views

How to parallelize the for loop while scp the files?

I am running my below shell script from machineA which is copying the files machineB and machineC into machineA. If the files are not there in machineB, then it should be there in machineC. The below ...
2
votes
3answers
58 views

Rsync over SSH with authorized keys..but run 2 rsync commands

I just figured out how to automate my rsync backups using authorized_keys and the command= parameter so that my rsync script can't be modified by the user. So my authorized key file looks like this: ...
2
votes
1answer
79 views

PAM Authentication and SSH access based on user info stored in sqlite3

I have an application that runs on a Linux box. The application stores all its user information (like - username, password, ssh-allowed, etc) in an sqlite3 database as follows. username ...
1
vote
1answer
61 views

service killed at ssh hangup [duplicate]

If I use ssh to run some command in background, that command gets killed as soon an ssh hangs up: ssh localhost -t "bash -c '(for i in 1 2 3 4 5; do sleep \$i;done)&'"; ps x|grep sleep This ...
0
votes
0answers
32 views

Shell script use ssh forwarding to send a file to a second system

I have ssh forwarding enabled and ssh to server A. On server A I want to run a script as root and take advantage of the ssh key being forwarded for USER to send a file to system B. I'm getting a ...
0
votes
1answer
38 views

Linux Fedora Core 18 freezes on OpenSSH login

miagos:~ $ uname -a Linux miagos 3.9.6-200.fc18.x86_64 #1 SMP Thu Jun 13 18:56:55 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux I have a reproducible issue, when my desktop Linux node stays online for more ...
3
votes
1answer
118 views

How can I forward a already forwarded ssh key into tmux?

I'm connecting through SSH from a machine where my keys are stored, forwarding to a second machine, and then try to use the keys from within tmux. I appear to "loose" the forwarding when entering ...
2
votes
2answers
109 views

Update MOTD at ssh login on Debian

What's the most clean way to display a different quote from a file (line-seperated) as MOTD on every SSH login on Debian? In other words, how can I trigger a MOTD update on SSH login?
0
votes
0answers
37 views

ssh can't connect to CentOS at login screen

I've a server that running CentOS 6.4 final, I tried putty to connect at login screen, it show Network error: Connection refused, but it works while I've logged in to server. Anyone know what's going ...
0
votes
1answer
64 views

cron runs job at unexpected times

I have set up a cron job on my local Ubuntu 12.04 server to log on a remote server through a passwordless ssh connection and run mysqldump on a database on that server once a day. My problem is that, ...
2
votes
3answers
1k views

sudo: apt-get: command not found. On Debian, SSH

Recently I executed this command: sudo apt-get remove debian-keyring debian-archive-keyring To prevent this such error message: WARNING: The following packages cannot be authenticated! openerp ...
-2
votes
1answer
66 views

How to use scp and ssh command in a single script without any keys?

How to use scp and ssh command in a same script? First I have to copy one file from my local server to remote. Then from local server itself, I have to check the size of the copied file.
1
vote
2answers
37 views

can I tell to useradd to execute a script? Maybe in /etc/default/useradd?

There are plenty of people that already answered to the question "how to execute useradd properly in a script?" My question is: "is it possible to tell to useradd to execute one script when it is ...
2
votes
1answer
63 views

control keyboard input on GUI over SSH

i am searching for a solution how to echo a keydown over SSH to a running GUI (based on debian). like VNC or Teamviewer but only command line based.
3
votes
1answer
323 views

ssh says: You don't exist, go away!

Sometimes when I try to ssh to a server I get the following message: You don't exist, go away! I haven't seen this before using ssh. What does this mean? Is there a problem with ssh or something ...