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

learn more… | top users | synonyms

1
vote
1answer
212 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
58 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
95 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 ...
6
votes
2answers
861 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
671 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
89 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
146 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
8k views

“sudo: apt-get: command not found.” after removing some packages

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
87 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
120 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
246 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.
5
votes
1answer
3k 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 ...
3
votes
3answers
692 views

Run a parallel command while waiting for ssh

I need to ssh into a server and check for a service to see if it is up and running. What i do is to use ssh and run a command which calls that service and check the output of that command. I want to ...
0
votes
1answer
162 views

Alert notification for unauthorized users

Hi I'm using a Phidgets SBC (Single Board Computer ) connected to my PC. So I would like to create an Alert Notification so that whoever enters the Phidgets SBC, triggers an alert notification to the ...
3
votes
3answers
2k views

Cannot SSH to VM

I have a VM installed with some custom disk image (CentOS) from work, and I can't SSH into the VM. Here are some things I've tried: [VM]$ ssh root@localhost Password: Great, ssh is working with ...
1
vote
2answers
221 views

gpg-agent asks for a passphrase, but ssh private key doesn’t have one

I am migrating from ssh-agent to gpg-agent now and I also have a bunch of ssh keys, which are loaded at startup. The keys do not contain passphrases, but after calling ssh-add <filename>, ...
0
votes
1answer
333 views

Multiple SSH tunnel through raspberry pi?

In my home network I have a PC, raspberry pi, macbook and a few other devices which I want to access away from home. As it stands, I have setup VNC server on my PC along with remote desktop and have ...
0
votes
1answer
101 views

Strange network problem (ssh) after hardware switch - packet loss?

My machine crashed (would not start) and so I pulled my harddrives and memory (which was not stock) and brought to another identical Dell optiplex 755 which I found in the office. Now everything seems ...
3
votes
5answers
3k views

Copy files without encryption (ssh) in local network

scp works well in all cases, but the Raspberry Pi is to weak to copy files efficiently in a secure environment (lan). The theoretically possible 6,75 MB/s via 54 Mbit wireless lan shrink down to about ...
4
votes
2answers
161 views

SSH - How to make X applications run on client?

I have the reverse problem that most people seem to be having. If I start an X application while logged into ssh, it displays on the server(host) machine instead of the client(local). This is the ...
2
votes
3answers
4k views

SSH XForwarding fails - xauth bad display name

I'm trying to setup XForwarding over ssh, but it fails. The same result happens whether I use the argument -X or -Y for ssh. The error I get. a@ASUS-N53SM:~$ ssh -X -p 6623 pinker@192.168.0.200 ...
0
votes
2answers
83 views

Command to restore filesystem to state after installation of the OS

How can I wipe all the changes to the filesystem since installing the OS? It's not that I want to destroy the files because they contain sensitive data or anything like that; I just want to start over ...
1
vote
2answers
103 views

How to chain ssh and stay in prompt

I want to create a script that when I double click runs: 'ssh -Y server1' WITHIN server1 run 'ssh -Y server2' (server2 not accessible outside) I now have the terminal prompt connected to server2 ...
2
votes
5answers
146 views

Can I use KdirStat over SSH?

I have a headless server running Centos 5.9. I can only SSH into it, is it possible to use KdirStat or a similar tool to get a graphical view of disk usage?
0
votes
2answers
130 views

Can using SFTP with HMAC-RIPEMD160 replace computing file hashes before and after transferring?

As part of my job I often find myself transferring lots of files between my computer and a remote storage space accessible over SFTP. To ensure the files' correct transfer I compute their SHA256 ...
1
vote
2answers
260 views

ssh key doesn't work for one server but works for another [duplicate]

debug ssh works Authentications that can continue: publickey debug1: Next authentication method: publickey debug1: Offering public key: /home/vinatia/.ssh/id_rsa debug1: Server accepts key: ...
2
votes
2answers
134 views

High-level user on Media Temple DV managed server (Plesk)

I've recently set up a DV Managed server from Media Temple. I'm not sure if my question is specific to Media Temple, Plesk or Linux in general. I'm open to alternatives but basically what I am trying ...
3
votes
2answers
12k views

rsync without prompt for password

I need to execute rsync, without it prompting me for password. I've seen in rsync manpage that it doesn't allow specifying the password as command line argument. But I noticed that it allows ...
0
votes
0answers
179 views

On ssh connection the auth.log shows as source IP the external IP of the server instead of the IP of the client

I have a very odd situation with my ssh connection. Every time I connect to my server, whatever is my external ip, the connection have as source the server's external ip. Example Server S.O.: ...
4
votes
1answer
4k views

ssh returns message “X11 forwarding request failed on channel 1”

When I ssh into a remote server that's not running any type of X11 desktop environment I get the following message. $ ssh user@server X11 forwarding request failed $ ssh user@server ls X11 ...
0
votes
1answer
899 views

How to execute Netscaler commands through a remote machine via SSH connection

I have been trying to execute some NetScaler commands like "bind" & "unbind" through a Linux Box via an SSH Connection. Now the Problem is, Manually we are able to enter & execute commands on ...
2
votes
1answer
77 views

ssh fails silently

I have noticed that when I execute a command via ssh: ssh myserver.mydomain.com "w" and the command fails, ssh does not print any error. Lets say, I have misspelled the hostname of my server and ...
1
vote
1answer
78 views

How can I interact with my home router via a device on the local network using ssh? [duplicate]

I have a raspberry pi plugged into my router at home, running raspbian. Before I left for work I: Configured the router to forward ports 80 and 22 to the pi Configured dyndns This all works, and I ...
1
vote
2answers
100 views

How can I confirm the identity of the remote SSH host I'm trying to connect to?

I'm trying to debug a problem I have when trying to connect to an SSH host over WAN. I'm looking for a way to confirm that my client is reaching the correct host, and is not routed somewhere else ...
3
votes
4answers
3k views

How to use SFTP on a system that requires sudo for root access & ssh key based authentication?

I want to be able to use SFTP to edit files that require root permissions. I'm using SSH Key based authentication - rsa key on smart card. If the system requires sudo to perform root level commands, ...
2
votes
3answers
178 views

Why is an application via 'ssh -X' slower than vncviewer via 'ssh -X'

Very simple question with strange effect: If I run a programm via x-forward it performs very bad when it comes to animations. E.g.: ssh -X <USER>@<SERVER> "application" But if I start ...
3
votes
0answers
77 views

Slow terminal print out

Just installed (netinstall) debian wheezy on a second machine newer machine however the terminal print out is noticeable slower than on the old machine although the new have faster CPU, RAM and HDD ...
1
vote
1answer
555 views

SSH remote backup script

I am trying to backup a remote server to my machine. I am trying something like ssh user@ip "dd if=/dev/sda" | dd of=~/backup.img But that obviously doesn't work. Other variants that don't work. ...
4
votes
2answers
930 views

Restrict password-less backup with SFTP

I need to perform backup of a server to my computer using Duplicity: duplicity /etc sftp://backup@my.dynamic.ip.address//home/backup Before this can be done, I need to allow password-less access by ...
1
vote
2answers
844 views

Why does this ssh command not work? (cat ./file | ssh <user@host> “cat | sudo -t -t 'cat > /root/location/file'”)

I'm trying to do the following but it's not quite right. cat ~/Desktop/blah.png | ssh -t -t trusktr@50.116.4.56 "cat | sudo -i 'cat | /path/to/blah.png'" I have my public ssh key in the ...
-2
votes
1answer
254 views

automatic capturing top output by cronjob CENTOS 6.5 x86_64

I have this command: top -n 14400 -a -b -d 1 > /toplogfile.txt I want to make a script which is run by cron every day to capture top output, and if it is possible gzip the output file after the ...
2
votes
1answer
2k views

Copy/paste into SSH'd VIM from local (Windows) clipboard

I would like to copy from a local machine and paste into vim on a remote box which I am SSH'd into. That's it. I have tried "+p and "*p, mouse middle-clicking, and a couple other things to no ...
0
votes
1answer
54 views

Supply additional ssh options in config file

How can I supply additional options in .ssh/config? I know that information like Host, Port, User etc. may be used in the ssh-configuration file to abbreviate ssh commands. I frequently create ...
1
vote
2answers
82 views

Force ssh to not to print warnings

Is there a way to avoid ssh printing warning messages like this? "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\r", "@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @\r", ...
3
votes
1answer
2k views

How to Block SSH Brute Force via Iptables and How does it work?

I'm planning to add the following rules to iptables to stop ssh brute force attack which are common these days. -A INPUT -i eth0.103 -p tcp -m tcp --dport 4522 -m state --state NEW -m recent --set ...
1
vote
1answer
155 views

What linux server settings allow my long running processes to keep running after the terminal is closed/terminated?

In previous jobs and experiences, I used screen or nohup to run my long running jobs from my terminal screen. Most, if not all of my previous jobs' servers dropped you if it didn't detect any ...
6
votes
2answers
1k views

How can I make ssh ignore .ssh/config?

I have the following in my ~/.ssh/config. HOST 10.2.192.* USER foo PreferredAuthentications publickey IdentityFile ~/.ssh/foo/id_rsa The above configuration lets me connect ...
2
votes
1answer
917 views

Locked out of server with SSH - anything I can do?

I accidentally locked myself out of my server. I changed the port, added ssh-keys, PermitRootLogin is 'no' and if I remember correctly PasswordAuthentication is also no. Logging in on another server ...
2
votes
3answers
549 views

bash adds extra single quotes

I have a problem executing my script. When executing it in debug mode (bash -x), I can see that bash is adding extra quotes. Therefor my script is failing. Here this is within my script: ...
1
vote
1answer
127 views

SSH X11 forwarding put on a different monitor

Is there a way to use ssh and X11 forwarding with multiple monitors, such that one screen gets the remote session and one keeps the current session? Note: In case I didn't clarify, I meant forwarding ...