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

learn more… | top users | synonyms

4
votes
3answers
5k views

bash: /home/user/.ssh/authorized_keys: No such file or directory

Create a ssh key: $ ssh-keygen -t rsa –P "" Moving the key to authorized key: $ cat $HOME/.ssh/id_rsa.pub >> $HOME/.ssh/authorized_keys bash: /home/user/.ssh/authorized_keys: No such file ...
2
votes
2answers
25 views

Securely making an SSH connection from a public computer

Today, I had to remotely connect to my debian computer at home to fix an issue with a VPN server. I was using my iPhone with an SSH client to fix the issue, but I had a hard time due to the small ...
1
vote
0answers
42 views

Copy directory with SCP

I'm trying to copy directory from local drive to remote server with -r parameter, however I'm getting: scp: System error: 1633648 (Failed to retrieve error string (err:317)) This is the syntax I ...
1
vote
0answers
36 views

User Acces restrict to only one folder

I am trying to establsih SFTP User rights at a server to only one folder, following the guidelines here: ...
0
votes
0answers
53 views

Disable certain keystrokes for SSH users [on hold]

I wrote a script to disable some keyboard keys while a user is logged in from a terminal, but when a user connects to server via ssh with software like putty, commands like showkeys, loadkeys doesn't ...
3
votes
3answers
3k views

SSH: I have a *.pem private key. How to create a SSH connection using it?

I tried to use putty also. I select this pem key there and got this: Unable to use key file "key.pem" (not a private key). I read that it is possible to convert a pem to a pub key. I did it like ...
2
votes
1answer
2k views

SSH connection timed out. it's not client or server…what now?

I have been using a Linux server via SSH for months, it still works from other locations but for some reason, this week, it isn't working from the office. Putty says "Connection timed out" Is there ...
4
votes
1answer
38 views

sound in firefox via ssh -X

I have a headless debian box with speakers. Suppose I'm at my laptop and I do $ ssh headless -X $ audacious then audacious' window pops up on my laptop's screen. If I open a file then it ...
1
vote
0answers
31 views

xvfb-run aborting on cluster

I'm trying to run a python script with xvfb-run on a cluster using SLURM; when I use an interactive session (srun) it works fine, but when submitting to a queue (sbatch) it aborts/fails without much ...
3
votes
4answers
9k 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 ...
6
votes
3answers
2k views

Remote-Accesible Live-Distribution (aka Live CD)

I'm looking for a live distribution (Live CD or the likes) which comes - per default - with sshd running at startup. I want to check the components of my laptop whose graphics has died ...
1
vote
1answer
24 views

Updating a bunch of Macs via SSH. Could use some help

all. I'm working on a script that'll be running from our Mac server, and it will (hopefully) update all of our Macs via Munki (repo is on the same server) and the built-in softwareupdate command. ...
1
vote
1answer
20 views

Remotely use SSH key authentication (3

I have a VM using ubuntu 14.04. running on a windows. If I use the terminal on the VM desktop, I can connect to my servers without passwords using registered SSH Keys. When I connect to the VM from ...
0
votes
2answers
889 views

Script SFTP with password - HP-UX

I would like create a script in HP-UX to send in sftp with password. I have this command sftp -o PasswordAuthentication= but if I answer yes or no after, I have this issue "Host key verification ...
2
votes
1answer
951 views

SSH agent forwarding, multiple hop

I tested this setup with Linux origin machine - everything is the same - only the first hop can use keys from origin machine. Initial problem I'm trying to set up SSH agent forwarding with multiple ...
0
votes
0answers
17 views

DISPLAY is not properly set in multi-hop ssh with X11 forwarding

I have a NAT machine on AWS which acts as my gateway to several other servers in a private subnet (where I ssh as root). Using xming and putty I am able to connect to the NAT machine and then run an X ...
3
votes
1answer
1k views

SCP Lost Connection

I can successfully connect to my server via ssh but when trying to run the scp command I get a connection time out. $ scp ~/.ssh/id_rsa.pub root@192.168.12.2:id_rsa.pub ssh: connect to host ...
0
votes
0answers
6 views

Key-based authentication from PyCharm / JSCH to OpenBSD fails

I am trying to configure PyCharm (java-based IDE) to connect via sftp to a new OpenBSD 5.6 machine with an almost-default setup. However, it keeps returning an error "Algorithm negotiation fails". I ...
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, ...
1
vote
1answer
386 views

Dynamic port forwarding using socat

I'm trying to replicate the functionality of ssh -D <PORT> user@machineX to tunnel all my traffic from my current machine via machineX. I do not need the ssh shell open at all, I simply wish to ...
1
vote
2answers
53 views

Enable ssh root login

I have access to a CentOS server with a user that its not root but belongs to the sudoers list. I do not have the password of root, nor I can't find out what it is (policies of the people who gave me ...
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 ...
3
votes
4answers
3k views

Not able to ssh to another computer, but can ping it?

Unable to ssh to another computer but can ping it? Not sure what I am missing? Using a Netgear router bash-3.2$ ifconfig lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ...
0
votes
0answers
44 views

ssh with rsa key asks for password

I have a server with Ubuntu 14.04 x64 operation system. Part of my sshd_config file (entire file): Port 2202 Protocol 2 PermitRootLogin without-password StrictModes yes RSAAuthentication yes ...
0
votes
1answer
1k views

Cant ssh, connection terminates immediately with exit status 254

The most recent thing I remember is changing the soft and hard memlock ulimit to unlimited. Now I cant ssh into the machine. This is the ssh log. Authenticated to IP ([IP]:22). debug1: channel 0: ...
3
votes
3answers
4k views

Error `No protocol specified` when running from remote machine via ssh

I have a script, simply to run my Graphical (GUI) Application, as below. #cat gui.sh #!/bin/bash ./gui -display 127.0.0.1:0.0 When I run it from local machine (./gui.sh) it runs perfectly ...
22
votes
4answers
41k views

Open a window on a remote X display (why “Cannot open display”)?

Once upon a time, DISPLAY=:0.0 totem /path/to/movie.avi after ssh 'ing into my desktop from my laptop would cause totem to play movie.avi on my desktop. Now it gives the error: No protocol ...
1
vote
0answers
17 views

Fedora 20: irqbalance problems in logs, strange behavior

I'm seeing unexplained network behavior, such as sporadic inability to reach beyond the subnet, passwords rejected for no apparent reason, and SSH attempts constantly yielding that irksome ...
1
vote
1answer
19 views

How to create a SOCKS only group?

I am currently trying to set up a user group that can connect to a server over SSH but only proxy through it. They can't see any files or run any commands. Users in the group would also be able to use ...
1
vote
1answer
44 views

SSH tunneling fails with “administratively prohibited: open failed” [duplicate]

I am trying to connect to internet via a server in local network. I don't have permissions to change server configuration. I want to do a ssh tunnel to that server and via that using socks proxy, I ...
0
votes
0answers
23 views

ssh: remote port forwarding failed for listen port <privileged>, although root

ssh root@host -R 135:other:135 Warning: remote port forwarding failed for listen port 135 Why? I'm root, nobody's listening on that port, subsequent -L 135:... works: ssh root@host -R ...
1
vote
2answers
82 views

Is there a reason for ssh and sftp being so unintegrated?

I am often working remotely with SSH and SFTP. The latter being basically a file copy protocol running over SSH, I am wondering whether there is a reason those two tools have not been integrated yet ...
1
vote
2answers
68 views

SSH PC at office in local network from home

My office has one default gateway and behind that is a local network with locally assigned IP addresses to all computers including mine. I hold admin in my Ubuntu installed office PC and is it ...
2
votes
2answers
25 views

temporarily disable login using one specific ssh key

On my server, I have several public SSH keys in ~/.ssh/authorized_keys. I would like to temporarily block/disallow/deactivate one key. I want to prevent the user to log in using this key now. but I ...
0
votes
1answer
40 views

How to ssh and execute a remote script within a local shell script?

I have a shell script which will kick off a series of jobs on a remote server. I can ssh into this server (but it does require a password!) and run the scripts manually, but there are certain steps ...
7
votes
4answers
2k views

Is there a way to check a users SSH key to see if the passphrase is blank

I'm looking to lock down our Solaris 10, RHEL 5, and SLES 11.2 servers. It has come to my attention that some of the users have no passphrase for their SSH keys. Is there a way I can check for this ...
1
vote
1answer
54 views

OS X SSH keeps asking for password [closed]

I connect from a Linux machine to several Macs over ssh using public/private keys. The setup is the identical on every ac, different OSs from 10.5 to 10.9 and publickey working. Only one of them, ...
1
vote
3answers
37 views

What will be prioritized in a conflict between ~/.ssh/config hostname and /etc/hosts?

What if one host is defined in /etc/hosts like: 192.168.0.100 server and one is defined in ~/.ssh/config like: Host server HostName 192.168.0.100 and you ssh into server: ssh ...
7
votes
4answers
7k views

ssh prompts for password despite ssh-copy-id

I've been using public key authentication on a remote server for some time now for remote shell use as well as for sshfs mounts. After forcing a umount of my sshfs directory, I noticed that ssh began ...
19
votes
3answers
7k views

Multiple similar entries in ssh config

Say I want to configure my ssh options for 30 servers with the same setup in my .ssh config file: host XXX HostName XXX.YYY.com User my_username Compression yes Ciphers ...
1
vote
3answers
716 views

Port 22 connection refused

I’m trying to copy a disk image over ssh to my local machine using this tutorial on linodes website. I know this could be posted on their support forum, but im convinced its in the general realm of ...
3
votes
2answers
70 views

Execute code on remote machine and copy the results back

I'm using some old Fortran code that uses some peculiar memory handling. To make the long story short, it runs on my local machine but fails on the remote one. This is why I would like to ssh to my ...
0
votes
1answer
905 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 ...
1
vote
3answers
469 views

Different “history” command output after reconnecting via SSH

Why do I get different results for the "history" command for the same user after I reconnect a disconnected SSH session? I connect to a server using putty (SSH), say as root My network gets ...
1
vote
0answers
53 views

How to add PuTTY private key to OpenSSH client

I am trying to setup scp on a new Ubuntu 14.04 system. This system will act as an SSH client to an already configured SSH server on another Ubuntu 14.04 system. I can use putty to SSH into the ...
1
vote
1answer
26 views

scp a file from one server to another one, got “permission denied”

source server IP 162.244.xxx.xxx file -rwxrwxr-x 1 user1 admin 36005278 Sep 10 2013 filename.tar at destination server scp user1@162.244.XXX.XXX:home/filename.tar ./ got a Permission ...
5
votes
4answers
1k views

How do I generate SSHFP records?

I need to setup SSHFP records in the DNS for my host. I have done some searching but I haven't found any good example. What are SSHFP records? What does SSHFP records look like? How do I create ...
1
vote
1answer
12 views

RYSNC over SSH not working for restricted shell

I need to give access to some Mr X in my production server so that he can push files to my server. Since there is no necessity to give him shell access , I decided to use restricted shell (rssh) so ...
1
vote
1answer
27 views

How to save an SSH key passphrase in gnome-keyring?

I want to save an SSH key passphrase in gnome-keyring and then use it automatically when I need it. How to do this?
4
votes
2answers
94 views

Why does my Python background process end when SSH session is terminated?

I have a bash script that starts up a python3 script (let's call it startup.sh), with the key line nohup python3 -u <script> &. When I ssh in directly and call this script, the python ...