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

learn more… | top users | synonyms

2
votes
3answers
404 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
63 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
54 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
80 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
37 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
64 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
35 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 ...
2
votes
2answers
456 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
90 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
69 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
157 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 ...
3
votes
1answer
57 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
51 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
48 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 ...
1
vote
3answers
103 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
98 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
42 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
122 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. ...
3
votes
2answers
172 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
340 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
39 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 ...
0
votes
1answer
239 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
32 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
38 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", ...
1
vote
1answer
253 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
75 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 ...
2
votes
2answers
117 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
259 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
70 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
54 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 ...
0
votes
0answers
35 views

How to upgrade Fedora OpenVZ container over SSH?

what is the standard procedure for upgrading Fedora (18 to 19) that runs as an OpenVZ container on my VPS via SSH? Can I simply use fedup or does the admin have to perform the upgrade from outside of ...
0
votes
2answers
103 views

How to Find the Cause of Too Many Dropped SSH Connections?

Overview: I have a home setup, behind a home router, on which there is Proxmox Hypervisor running over 10 VMs. One of those VMs is the first point of entry after router. It is just a jump host Centos ...
1
vote
0answers
141 views

Can't Install ImageMagick on Centos using Yum

I am trying to install ImageMagick on my dedicated-virtual Centos server for use with PHP. I first ran the following commands successfully: # yum install gcc php-devel php-pear # yum install ...
0
votes
0answers
21 views

How to install memusg tool

I've tried with yum install memusg but returned: Loaded plugins: fastestmirror, security Setting up Install Process No package memusg available Error: nothing to do Any solution
0
votes
0answers
116 views

OpenSSH hangs after login without showing login prompt

I ran across an issue with ssh after fresh Ubuntu 13.10 installation on Lenovo T420. I tried git pull (which failed) and this led me to more general ssh failing. After spending some 2-3 hrs of ...
0
votes
1answer
50 views

Ways of logging to Linux machine [closed]

How many ways to log to a Linux machine there are? Direct login, using connected keyboard :) Remote login via ssh (-Y) to console or GUI is there any other means - defaultly allowed, or enabled in ...
3
votes
1answer
64 views

Public key f3:6e:87:04:ea:2d:b3:60:ff:42:ad:26:67:17:94:d5 blacklisted (see ssh-vulnkey(1)); refusing to send it

I'm reproducing the Debian PRNG vulnerability from 2008 in a lab environment. Now I'm trying to SSH into the machine, but every time I try to send the private key I get: Public key ...
0
votes
1answer
65 views

Passing multiple scripts to shell over ssh

I have a somewhat lengthy script which sources other scripts to include the functions there. I'd like to execute this script remotely via ssh. Now I thought to make one script file of it (without ...
1
vote
1answer
62 views

ssh out of port 80 to port 22?

The isp I am currently connected to only has port 80 open, but I need to ssh to my server which listens on port 22 of my router there. Is there a way to go out through port 80 here, then in through 22 ...
2
votes
0answers
21 views

Mount a workstation dir upon login to server over ssh

I'd like to have a local directory be mounted upon logging into a remote server via SSH. So if I were to ssh into foo.bar.com as user baz then there would be a directory mounted in /home/baz/roaming - ...
0
votes
3answers
53 views

SSH public key authentication works on LAN and not from WAN

I've setup my SSH server to use public key authentication. When I connect to my server on local network, it authenticates. But it doesn't when I connect over the internet. I don't think the problem ...
0
votes
1answer
65 views

Ssh 'access denied' from one host but not the other

Consider the following scenario: I have a Debian-ssh-server setup and exposed it to the internet for some time for testing. Also I have an account which is basically configured as root in the sudoers ...
1
vote
1answer
26 views

Using passwordless ssh on CentOS 6

I have a fresh install of CentOS 6 that I am trying to connect to using ssh without a password. But each time I try to login, I am asked for the password. Here are the commands in order: ssh-keygen ...
2
votes
0answers
129 views

SSH login from external authentication

Here is what I try to accomplish: I have a server with a git repository. I use ISPConfig as control panel for our websites and I want to integrate the ISPConfig API for email authentication as second ...
0
votes
2answers
42 views

Disable authentification for ssh [duplicate]

Is there a way to store my password when ssh'ing on a server? I tried to change the variables BatchMode and PasswordAuthentication in my file /etc/ssh/ssh_config, but to no avail. Could someone ...
3
votes
1answer
60 views

Installing openssh-server after Rescue Disk boot

I tried to help a friend with hard drive boot problems. I first asked her to make a rescue disk (Ubuntu 12.04.3), and boot from it. Then I asked her to open a console (Alt+F1) and use sudo to become ...
2
votes
1answer
145 views

Was my Unix server compromised?

Someone asked if this constituted a break-in and wondered if their server had been compromised. Jan 12 04:16:51 foo sshd[26725]: Failed password for root from 61.174.51.207 port 1076 ssh2 Jan 12 ...
4
votes
1answer
170 views

Non-printable-ASCII characters in sshd banner

It's possible to configure a banner for sshd that is to be displayed as a connection is opened, via Banner /etc/motd.ssh in sshd_config. Note that this is displayed before the authentication occurs, ...
3
votes
3answers
193 views

Storing the private key password for auto-mounting SSHFS?

I connect to a server via sshfs using private/public key pairs. My local key needs a passphrase to use. NOTE: The public key has already been copied to the remote server. I'm looking for a method to ...
1
vote
1answer
267 views

How to forward port by (sub)domain name?

I have this setup: a (Host) FreeBSD 9.2 host server running VirtualBox with another (Guest) FreeBSD guest server. I have set up port forwarding on the Host to the Guest like this: VBoxManage ...