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

learn more… | top users | synonyms

2
votes
1answer
23 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
86 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
135 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
46 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
64 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
93 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
52 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
188 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
41 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
59 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
73 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
13 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
24 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
152 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
38 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
23 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
30 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
26 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 ...
50
votes
3answers
29k 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
31 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
36 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
65 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
40 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
70 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
34 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
155 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
66 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 ...
1
vote
3answers
111 views

How to find md5sum of files on remote machines by doing ssh?

I am running my below shell script on machineC which gets the md5sum of my files in my PRIMARY directory in machineC itself. #!/bin/bash export PRIMARY=/data01/primary for entry in "$PRIMARY"/* do ...
0
votes
2answers
39 views

When executing a script via ssh, how can I transfer variables back to the PC issuing the cmd?

I'm writing a pretty simple script that will SSH into the machine of my choice, run a script to obtain things like the number of users logged in, CPU averages, etc, and write it to a file on the PC ...
2
votes
1answer
63 views

ssh as super user

I did the following mistake on a remote server : # sudo chmod 700 / Now no user but root can do anything. I can't even ssh as a normal user anymore, since I don't have permission to access bash. ...
0
votes
1answer
108 views

Intermittent 'ssh_exchange_identification: Connection closed by remote host' error

While there are many questions on this site and others addressing this very issue, I haven't yet found one that seems to address what I'm experiencing. When trying to ssh a linux box from a MBpro ...
1
vote
1answer
68 views

How does Linux generate ssh keys after reboot?

I installed CentOS 7, and noticed that I have rsa and ecdsa keys generated. I deleted all of them and rebooted the machine. I got a new pair of rsa and ecdsa keys. How does Linux generate the keys? ...
11
votes
3answers
820 views

scp between two servers not in the same network

There are two server that I can access with 2 different VPN connections. I have managed to have both VPN working on the same time on my machine (a bit of routing rules). I want to do a scp ...
0
votes
1answer
37 views

ssh config change user for one host

I would like to connect to each server using the root user and to machin server using me user. I edit .ssh/config User root Host machin Hostname machin User me When I type ssh machin I ...
0
votes
2answers
47 views

Disable incoming telnet connections

I'm trying to secure my Debian server, and noticed that if I type telnet myserverip port# then anyone can see my ssh version. I'm a bit worried that people can do some harm aside from that. How can I ...
4
votes
3answers
76 views

SSH pipe broke while running apt upgrade. What can I do about it?

I was connected to my aws debian wheezy server and while running apt-get upgrade the ssh pipe broke. I didn't use screen or anything, so I don't think there's a way to recover that session. If I ...
0
votes
1answer
48 views

How to take screenshot of /dev/pts?

I am connecting to another server using ssh service. I want to execute some commands (like creating users) on some servers and take the screenshot of the pseudo-terminal, which is to be stored on my ...
1
vote
1answer
34 views

How to check if SSH compression is enabled?

I am experiencing severe slowdown in Git checkouts from VM. I've been told that one of the reasons may be SSH compression (either enabled or disabled). How to check that is the state of compression ...
0
votes
2answers
50 views

Non-interactive shell expand alias

I'm having trouble getting aliases to expand on my hosting account when I run a command like: ssh user@server "bash -c \"alias\"" My .bashrc file is: echo .bashrc # .bashrc shopt -s ...
0
votes
1answer
66 views

Why is my server intermittently refusing ssh connections?

Background I have an ssh and OwnCloud server. Frequently, my desktop's OwnCloud client disconnects. Attempting to ssh into my server results in Connection refused. I can ping the server, but cannot ...
-1
votes
3answers
129 views

SSH: “Server refused our key” with no reason

I was trying to set up a simple backup script to run automatically that would copy a file from a Windows machine to a Linux one through SSH. As a lot of simple online tutorials suggest I used pscp ...
0
votes
1answer
112 views

How to ssh into remote machine and create new user in bash script

I am writing a bash script and would like to ssh into a remote machine and execute the adduser command. This is not working, all that I get is the --help text for adduser when I run the code below. ...
1
vote
1answer
50 views

Change SSH connection settings without disconnecting?

I watched the The Black Magic Of SSH video and lecturer in this video drops to SSH shell with some key-combination. How did he do that?
1
vote
1answer
58 views

How to send a mail when someone remote connects to my server

I would like my server to send a mail to me when someone connects remotely over ssh to my server. who only gives me back the Username, TerminalID and Date. I cannot use only that, I need to check ...
0
votes
2answers
61 views

SSH into Windows Server '08 from Mint 14 - “permission denied”

So I have been trying every which way to get into my Server '08 box via SSH. I have tried FreeSSHD and Cygwin. Everything works fine when I am using simple SHA pass authentication, but the moment I ...
-1
votes
1answer
66 views

Connect via SSH with hostname instead of username and hostname

Whenever I have to login to a remote server, I have to enter ssh username@hostname and subsequently a password. I want to save time by omitting some parameters whenever I try to login to a server. I ...
0
votes
1answer
44 views

Binvox not working on a headless Linux server

I'm trying to run Binvox (http://www.cs.princeton.edu/~min/binvox/) via web server, on an Amazon EC2 server with Nvidia GRID K520 GPU and running Ubuntu 14.04. I'm using the system(binvox, $ret) ...
4
votes
1answer
151 views

Provide sftp read/write access to folder and subfolders, restrict all else

I need to provide user access to Ubuntu 14.04 Server, only limited to certain folder. To enjoy the ssh security and not to open up new service and ports (ie, ftp), I'd like to stick with sftp. ...
1
vote
0answers
8 views

How to SFTP through proxy if there is no netcat? [duplicate]

sftp -v -oProxyCommand="nc -v PROXY_IP_HERE PROXY_PORT_HERE %h %p" user@remote_sftp_server.com 22 How can I do this if I don't have netcat installed? I don't have permission to install it, even in ...
4
votes
0answers
85 views

Immortal SSH Session

I've got a little TurnKey Linux Debian Squeeze VM that I use for SFTP. I had a user login and transfer a file the other day and now I can't seem to kill the session. I'm still a little shaky in ...