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

learn more… | top users | synonyms

1
vote
1answer
46 views

Reverse ssh tunnel in config

How can I establish a reverse ssh tunnel with my ./ssh/config file? I'm trying to reproduce this command ssh -R 55555:localhost:22 user@host in my .ssh/config file so that when I type ssh host ...
0
votes
1answer
116 views

SSH over multiple server and save output of multiple commands in file on local server

I want to SSH over multiple server (host 1, host2 and host 3) and save output of multiple commands (cmd1, cmd2 etc) in file (output.properties) on local server. I know there are a few posts similar to ...
1
vote
0answers
28 views

How can I get console ssh to NOT ask for my private key password every time? [duplicate]

I have a program required by work installed on a Debian Wheezy box. Previously I was using Mac OS X (switch details irrelevant). I have an SSH keypair at ~/.ssh/id_rsa{.pub}. That keypair has a ...
4
votes
2answers
106 views

What elements affects the key pairs generated by ssh-keygen?

I use the ssh-keygen -t rsa to generate the RSA key pairs. I see that in the id_rsa.pub file, I see the username and the hostname. But I want to know that what elements will affects the key pairs. ...
2
votes
2answers
46 views

How to connect to a VPS without SSH.

I have a fresh VPS I just bought, for playing only. No risk of any kind involved, so I noticed that due to my slow connection I have to wait seconds to finish writing commands and opening/closing ...
3
votes
1answer
43 views

Terminating SSH called from a script (SIGPIPE handling?)

so I was wondering why there are some hanging SSH connection left from some of my automated scripts and I came to a weird issue - SSH, if used without PTY, doesn't terminate when the output pipe gets ...
1
vote
2answers
127 views

How to do a grep on remote machine and print out the line which contains those words?

I have few logs files in my machineB under this directory /opt/ptd/Logs/ as shown below - My logs files are pretty big. david@machineB:/opt/ptd/Logs$ ls -lt -rw-r--r-- 1 david david 49651720 Oct 11 ...
0
votes
0answers
47 views

SSH connection speed drops after some time of inactivity

I use MC to transfer working files from my Ubuntu 14.04 to other Linux hosts (mostly CentOS5). Shell link is opened by F9->R->H(shell link)->${host}->Enter combination (in MC). Then I can copy files ...
1
vote
1answer
258 views

Chroot gone wrong, can't ssh with user

Distribution: Scientific Linux 6.5 (Carbon), not exactly your typical brand of linux. Tried to chroot a user using these instructions for SSH and quite obviously failed, and now I can't even log in ...
1
vote
5answers
78 views

SSH login and /tmp on 100%

Not counting the reserved space by root (usually 5%), if the /tmp is really 100% full, so 0 bytes free, why couldn't we log in to the machine via ssh? We only got the error message "cannot fork". ...
0
votes
0answers
22 views

I am getting inconsistent replies when setting up passwordless SSH for an application

So I am setting up password-less ssh from 2, 2 server clusters that span between 2 data centers. I am finding that password-less ssh for the application user is very inconsistent. I seem to have a ...
1
vote
0answers
56 views

How to do version-control repository update in crontab?

I'm trying to automate version-control repository update in crontab. The following script /home/usr/mrbean/bin/update.sh works in interactive Bash command-line: #!/bin/bash ...
2
votes
1answer
367 views

Expired password and SSH key based login with UsePAM yes

There is a SLES 11 machine. The users logs in via SSH and pubkey (mixed, some user uses password, some use ssh key) The sshd_config has: UsePAM yes PasswordAuthentication yes PubkeyAuthentication ...
2
votes
2answers
64 views

Copying Files Through Two Layers of SSH from Windows

The place I work has a login server, and then I login to a Linux box from that login server. As in, ssh login@host ssh computer_name providing authentication each time. If I'm working from my ...
1
vote
3answers
106 views

Securely passing user input to command

I have a daemon daemon running in Server A. There, there's an argument based script to control the daemon daemon_adm.py (Server A). Through this script I can insert "messages" to daemon coming from ...
-4
votes
1answer
174 views

Need to automate file transfer from linux server to windows shared folder

We need to transfer files from a Linux server to a Windows shared folder. we don't have any Samba server. Can you please explain a better way?
2
votes
1answer
107 views

DSA/RSA keys work with Linux but not HP-UX

I have an NFS mount that I use to log into many Linux/Unix servers. I created a passphraseless RSA and DSA key from with I copied the id_rsa.pub and id_dsa.pub files over to authorized_keys. total 9 ...
2
votes
1answer
100 views

Using rsync to copy from local to remote server with cronjob, asking for password

I want to copy files from a local machine to a remote machine. I have the command all set up and it looks like this: rsync -a project root@123.456.789.0:~ However, when running this command, I'm ...
0
votes
0answers
222 views

ssh public key authentication not working

I had my keys set up so I can ssh between machines without having to enter a password and everything was working for a while but then, all of a sudden, I'm being prompted for a password on some ...
6
votes
1answer
93 views

Cleanup trap for ssh command on multiple remote hosts

I want to execute an arbitrary command on multiple remote hosts using ssh. These commands are mostly long running commands that monitor server resources and aggregate the output to my local ...
1
vote
1answer
73 views

Open file over ssh in local X window [duplicate]

How can I open html file in local internet browser? I am connected under /ssh://user@server.... I'm thinking about something like firefox file_from_remote_server.
2
votes
1answer
60 views

ssh and screen automatically - what am I missing?

This works fine, but does not load my ~/.bash_profile on server2. Why? $ ssh -A -t server1 ssh -A -t server2 bash -c "screen -dR"
2
votes
1answer
93 views

Creating an SSH tunnel from a linux VPS to a web server database

I'm creating a server application that clients will connect to. The server application is running on an Ubuntu Server 14.04.1 VPS. The server needs to be able to connect to a MySQL database hosted on ...
2
votes
1answer
26 views

Repository for Family Pictures [closed]

I have a Debian computer and a MacBook Air. On Debian I created a repository: mkdir -p /repository/git/2014.git cd /repository/git/2014.git git init --bare --shared On the MacBook I then typed: cd ...
5
votes
1answer
370 views

Tail log file on multiple machines over ssh

I'm trying to tail a log file on multiple remote machines and forward the output to my local workstation. I want connections to close when pressing Ctrl-C. At the moment I have the following function ...
2
votes
1answer
564 views

My cloud server came with PermitRootLogin without-password, is it normal?

I was just wondering if it is normal that in the Ubuntu 14 provided by my cloud hosting company,there is this configuration in the file /etc/ssh/sshd_config : PermitRootLogin without-password ...
0
votes
0answers
90 views

Lubuntu client can't browse web while connected to OpenVPN

I've got a Lubuntu "server" (old laptop) running OpenVPN and SSH server. I have the proper ports forwarded in my home router so that I can connect via OpenVPN from the internet. I've also got push ...
1
vote
2answers
221 views

Remote monitoring Linux server from Ubuntu workstation via SSH [closed]

I am looking for a convenient way to monitor my Ubuntu server from my laptop (running Ubuntu Desktop). I understand this is easily achievable by SSHing to the server and running commands, but I'd like ...
6
votes
1answer
148 views

Work around two-factor SSH auth with Master connection and port forwarding?

The problem 1.0 I'm working on a server that only supports two-factor auth (keypair auth is disabled). So every time my SFTP client wants to upload a file, it asks me for a token... after 3 minutes ...
0
votes
0answers
79 views

SSH server doesn't respond for a while, then opens up briefly after port scanning

On my local machine I try to ssh into my server but it gives me connection refused. Doing an Nmap of my server tells me there are no open ports. pinging the machine works. What I've done so far is ...
3
votes
3answers
271 views

How to copy, execute and retrieve data from a remote computer?

I am trying to run some calculations on a remote computer. Basically I want to copy some files to the computer, load a software, execute the calculation, then retrieve the data back. I have created a ...
0
votes
1answer
54 views

automatically copy file from local server to remote server after login over ssh

I need to know how to copy a file from local server to remote server automatically after login using ssh. actually In my local server so many users are there with their local userid . but they will ...
2
votes
1answer
147 views

Use sudo with ssh command and capturing stdout

I'm trying to run a command as root (via sudo) on a remote server, and capture stdout (but not stderr) into a file. eg. Something like this: ssh user@remote "cat /root/file.tar | gzip" > ...
0
votes
1answer
91 views

SSH to a server, execute update command that continues even after logging off the ssh session

Okay I saw a lot of questions like this, but almost all have either theoretical answers which do clear the concept but I am still not able to put it up in code. What I want to achieve using a bash ...
0
votes
0answers
18 views

How to add and mount given a UUID? LMV2

I can't activate these Volume Groups. I have two HDDs attached, both share the same Volume Group name. Basically, the two HDDs are dev/sda and dev/sdb. The second HDD is the failed HDD and the first ...
3
votes
1answer
33 views

How can I lock down a user account to the point that it can read/write/execute as little as possible?

I would like to lock down an Arch Linux user account to the maximum extent possible. The only functionality required for the account is to accept a non-terminal SSH session which allows the client to ...
2
votes
2answers
529 views

Tunnel yum traffic through another server via ssh

I am running a Fedora desktop behind a corporate proxy that is blocking yum traffic (specifically *.gz and *.bz2). I have access to a separate RedHat machine via ssh which can download anything it ...
0
votes
0answers
43 views

RDP from Windows PC to Linux

I have my Windows on network A and Linux machines on network B. I want to access the 0th desktop of one of the Linux machine from my Windows. I can ping my Windows machine on network A from the Linux ...
1
vote
1answer
54 views

ssh settings `permitopen=“localhost:4000”` does not limit remote port forwarding [duplicate]

I have a special user on my server, let's call it foo. I use it only for port forwarding. The user's .ssh/authorized_keys2 is set up to prevent login and to open only a specific port: ...
1
vote
1answer
45 views

help organizing ssh aliases

My .ssh/config is starting to grow with aliases, and remembering them all is getting harder. Do you have any tips for better manage this growing collection? For example an autocomplete when I type ...
0
votes
1answer
30 views

Sync Pi with local directory

I have setup a Pi with ArchLinux. Now I want to sync one directory called Pi on my local machine with the directory Pi on my Pi. At first I have written a little script that uses rsync but I've run ...
52
votes
3answers
34k views

how can shellshock be exploited over SSH?

Apparently, the shellshock Bash exploit CVE-2014-6271 can be exploited over the network via SSH. I can imagine how the exploit would work via Apache/CGI, but I cannot imagine how that would work over ...
2
votes
1answer
50 views

Why is my winscp session not showing in Linux?

When someone open the sessions using Winscp its session is not showing in Linux when I run who or last commands. I thought that it will appear because it is using ssh to connect. But still there are ...
0
votes
1answer
62 views

URL Rewrite on debian not working

When trying to enable URL rewrite I just can't get it to work. I've enabled it with the command sudo a2enmod rewrite and I've restarted the service using sudo service apache2 restart. However in the ...
3
votes
1answer
89 views

Control-p freezes SSH session

I have encountered a strange situation on one of my SSH ARM machines I use on a daily basis. Every time I connect to the server and press Ctrl+P to invoke previous-history BASH function SSH connection ...
0
votes
2answers
66 views

Accessing Linux server via VPN or Certificate based ssh?

My company has a fairly common security setup where you need to log in via VPN, when outside the company network in order to get access to the servers. The biome is mostly Windows machines. I'm ...
2
votes
1answer
227 views

Shell command works locally but does not get parsed correctly through ssh

If I execute the following shell command locally, I get the expected result: adb -s 123456789 shell "su -c 'mount -o remount,rw /system;rm -r /system/app/MyApp.apk;cp /sdcard/MyApp.apk ...
3
votes
1answer
41 views

Why do I get an error when double quoting single quotes in a script that launches a remote SSH command?

I have this script: port=$1 cmd=$2 ssh root@127.0.0.1 -p $port "'"$cmd"'" When running myscript.sh 1000 "ls /dev/shm" it get this error: bash: ls /dev/shm: No such file or directory In the ...
2
votes
1answer
158 views

How can I change login while authenticating on SSH?

It's hard for me to express exactly what I mean, so I'll explain it in a few steps: I'm connecting with SSH, and server ask me for login. I write login, and then it asks me for password. I realize ...
3
votes
1answer
159 views

scripting copy of remote root-owned files when 'PermitRootLogin no'

I'm setting up a cloud node (only ssh-accessible, GUIs deprecated, running Debian 7) with 'PermitRootLogin no' for security. For some applications I want to copy some root-owned config files from the ...