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

learn more… | top users | synonyms

0
votes
2answers
69 views

mussh no tty present and no askpass program specified

Using MUSSH on remote machine to execute a bash script $ mussh -a -i ~/.ssh/id_rsa -d -H mas-hostfile -c 'bash script.sh' -m2 sudo: unable to resolve host hostname aurelien@000.000.000: sudo: no tty ...
2
votes
1answer
50 views

Submit password with sudo and execute script with nohup

I would like to download and run a script in the background so the task is independent of the shell and its exit. Moreover this script should be run as sudo, using: echo MY_PWD | sudo -u MY_USER -S .....
3
votes
1answer
47 views

PAM failing to authenticate sudo, after successfully contacting ssh-agent

Setting up PAM sudo authentication, using ssh-agent, on 14.04.1-Ubuntu server LTS. I'm still unable to successfully authenticate sudo, via the ssh-agent, using PAM. Here are my relevant /var/log/...
0
votes
1answer
42 views

Questions about session keys used in ssh

From SSH handshake process explained http://www.cathaycenturies.com/blog/?p=1635 Key Exchange The client has a public & private key pair. The server has a public & private key pair....
3
votes
2answers
2k views

SSH Agent Forwarding on server

I'm struggling with the concept of SSH Agent Forwarding. This is what I've done so far: Create default identity local (ssh-keygen) Install the public key on bitbucket Now I want to connect to a ...
0
votes
0answers
28 views

Arch Linux - can't ssh into a beaglebone black [closed]

I have a fresh install of arch linux and when I try to ssh into it I get ssh: connect to host 192.168.7.2 port 22: No route to host What am I missing? It's worked in manjaro and other linux ...
0
votes
0answers
13 views

Raspberry pi. Set up WiFi netctl profile with No keyboard and No wired lan connection

I have a raspberry pi 3 and a hdmi tv set up. I have NO keyboard and NO wired lan access. I want to set up a WIFI profile with netctl. I want to create a static IP for the pi. I have another laptop ...
4
votes
1answer
29 views

ssh dynamic port forwarding and tcpdump shows cleartext

I'm trying to encrypt my web traffic using SSH dynamic port forwarding in case I happen to be in moot places such as internet cafes, hotels and so on. On my laptop I installed an SSH server and ...
0
votes
1answer
780 views

SSH to Linux Container from Other Machine

I am trying to learn about Linux Containers and this is my first encounter with servers, ssh and many other things that I do not know the terms yet. I create five different containers and authorized ...
1
vote
0answers
18 views

rsync no matching key exchange found

I am trying to use rsync to send a file to a remote device on my network. I can SSH into the device just fine, but trying to use rsync gives no matching key exchange found. Their offer: diffie-...
2
votes
1answer
134 views

specify shell for ssh session

I am logging to a remote server via ssh as user www-data. User www-data on the server has his default shell set to /bin/sh, and when I log in, I get dash as my shell. I can then type bash and get bash ...
-1
votes
0answers
11 views

forward Windows application connection to a unix VPS to bypass port restriction

my campus has blocked all ports except those for webpages 80, 443, but funnily I can access my SSH via putty with port 88888 configured on its sshd. I am wondering if there's a way I can make my ...
-3
votes
0answers
40 views

Can't sftp to raspberry pi using public IP address, can SSH without problem [closed]

I am trying to sftp to a raspberry pi using my public IP address (IPv6) but get a message saying ssh: connect to host 2602 port 22: No route to host Connection closed I have set up port ...
2
votes
1answer
36 views

How are session keys, public/private keys generated on the ssh server and client and used?

From SSH handshake process explained http://www.cathaycenturies.com/blog/?p=1635 Key Exchange The client has a public & private key pair. The server has a public & private key pair....
1
vote
3answers
39 views

How to SSH via intermediate server [duplicate]

Three server A,B & C. How to ssh connect from A to C via intermediate server B, if A to B & C to B are password less(key)? I encountered this in an interview. Anyone knows how?
0
votes
1answer
14 views

Download with rsync through bastion/jumper, without .ssh/config changes

I'd like to download a file from server C, through server B (bastion) to my local server A. Normally I'd handle the mess in ssh/config with ProxyCommand, but in this case I can't. Can we make a one-...
7
votes
2answers
3k views

How to check which SSH keys are currently 'active'?

How might one check which .rsa, .pem, and other files are 'loaded' or 'active' by ssh-add? I just had this scare: $ scp -i /home/dotancohen/.ssh/dotancohen.pem someUser@1.2.3.4:~/files.tgz . Warning: ...
-1
votes
1answer
58 views

How are public and private keys used in ssh?

Assume I have set up public/private key authentication in ssh. Is it correct that the ssh server possesses the public key but not the private key, while the ssh client possesses both the public and ...
1
vote
2answers
497 views

Unable to login with SSH-RSA key

This post is following this question : Authentication refused: bad ownership or modes for file /var/git/.ssh/authorized_keys . The issue as exposed there is solved (about files modes of the ....
0
votes
0answers
60 views

allow user to ssh

I have a VPS that I am using to run some websites but also want to allow apphosting on this server. So I have installed Meteor in folder on the server and only want to allow access to specific user to ...
3
votes
2answers
11k views

Easiest way to mount Google Cloud Storage in CentOS

we use centos for some hosting projects, but nut very expertise with systems. We pretend to use a main CentOS box to mount an "unlimited" Google Cloud Drive and then share it via NFS to the rest of ...
1
vote
1answer
963 views

ssh secure shell: “connection closed by remote host”, not acquiring the key

I am very new to using this ssh secure shell to access a remote workstation. This is the third time I have received the message: Server responded "Connection closed by remote host". The ...
-2
votes
1answer
42 views

Write shell script for logging in servers and run command after logging in

I have wrote a shell script for logging into servers and run few commands to start and stop processes running on it, So I tried below code, but it is showing error, please help me with the script. ...
0
votes
0answers
7 views

Why doesn't wpa_supplicant work when using crontab job?

I am writing a script that is installed via a crontab job. The point of the script is to locate a specific AP and connect to it on start up. The script will log its progress to a text file called, "...
0
votes
1answer
37 views

Custom greeting when I log in via ssh

I need to create a custom greeting message on my server when I log in via ssh. Or at least I want to add some information to it. I have none of these files: /etc/ssh/sshd_config, /etc/motd. So how can ...
1
vote
1answer
21 views

SSH in local network while hosting same network

I have the following setup: Computer A has a Wifi-USB adapter (and is a robot, so it doesn't need real internet access). It's running Ubuntu 14.04. Computer B is my Laptop running Ubuntu 14.04 also. ...
0
votes
1answer
37 views

SSH connect to HOSTNAME port 22: Connection timed out

Using the "SSH Shell Access" in my Cpanel I have added my public and private key in the import key section and I also have authorised them. But I am getting this "Connection timed out" error on port ...
3
votes
4answers
179 views

Can I change terminal type used to login through SSH?

When I login on some particular server through SSH (which I do not have admin access to), I get the following error: urxvt-unicode: Unknown terminal type (I also don't want to change my terminal type ...
0
votes
0answers
41 views

SFTP compression vs gzip when sending decent number of files

I have a directory that's got a few gigabytes composed of several ten thousands small files. I want to copy them over the network using SFTP. Initial research has proven that compression will reduce ...
3
votes
0answers
424 views

SSH Failing to fork with sshpass

I've a problem with port forwarding command using sshpass. Problem is that it's working on one server and does not work on another. Both are Debian 7 x64 boxes. sshpass -p password ssh -f -D 0.0.0.0:...
0
votes
1answer
54 views

Repeat SSH Login

I am working on remote machine through SSH. In SSH session, I logged in as root user and doing some work and rebooting it. Every time I reboot the remote machine, my local terminal, from which I had ...
1
vote
1answer
18 views

how to get /log fS usage in two remote servers

how to trigger mail with below format by getting df -h /log fS usage server1 | server 2 75% | 50% Below are step how i check FS usage manually login to putty ssh server1 give the ...
2
votes
3answers
280 views

Accidentally port 22 got closed, how do I fix the SSH access?

Accidentally, Port 22 got closed. I cannot ssh into the instance, though the instance are running well on other desired ports. Getting following error while doing SSH. ssh: connect to host X.X.X.X ...
3
votes
0answers
46 views

Cannot login SSH with key, always asking password

There is a issue confusing me for couple of days. I have 3 Servers. A, B and C. I want access B and C from A via ssh. I have set public key/ authorized_keys ... on A,B,C. Scenario #1: Access B(.133)...
2
votes
2answers
1k views

Cannot ssh into a fresh install of CentOS minimal on lan

I've downloaded CentOS 7 Minimal and installed on an old laptop. I want to be able to ssh to the machine from other machines on the same lan. But I keep getting this error .. ssh: connect to host 192....
0
votes
0answers
1k views

When running some X prog. remotely with ssh -X, it says “libGL error: failed to load driver: r600”

OS: CentOS Linux release 7.0.1406 (Core) Kernel: 3.10.0-123.8.1.el7.x86_64 When I run xcrysden (http://www.xcrysden.org/) remotely through ssh -X, it crashes with error: "libGL error: failed to ...
2
votes
1answer
34 views

Duplicity backup via sftp finishes without errors but no files transferred to remote host, why?

I want to use the following command to do a remote backup of /home: duplicity full /home sftp://user@hostname.com/home/user/backup When the command is run I get the following output: Local and ...
3
votes
0answers
40 views

How to pass private ssh key via string, not a file?

I have a text of a private key file. I want to connect via ssh to other node, yet the gateway I am in does not provide me with file system access. How to pass a text representation of key and not a ...
6
votes
2answers
31k views

What is the default idle timeout for OpenSSH?

I can't seem to find an answer to this simple question, which I need for some compliance documentation. On a default install of CentOS 6.5 (OpenSSH 5.3p1-94.el6), after how long of being idle will ...
0
votes
1answer
48 views

Way to test ssh connection

To test ssh connection, https://help.github.com/articles/testing-your-ssh-connection/ says ssh -T git@github.com # Attempts to ssh to GitHub the manpage of ssh says -T Disable pseudo-tty ...
3
votes
1answer
33 views

Cannot tunnel over ssh without command/getting shell [duplicate]

I would like using ssh tunneling options. For that purpose I use command: ssh -L 1234:localhost:5678 host however this logs me into the shell on remote host. Next I tried -f as: ssh -f -L 8999:...
2
votes
1answer
30 views

How do I discard unwanted fail messages from an ssh command?

I'm trying to avoid printing messages to the console received when a lun is not found during an ssh command. SSH is to a NetApp filer. Command is being run on a Solaris 10 host. Here is some of the ...
6
votes
2answers
4k views

Force ssh to always use SSH_ASKPASS [duplicate]

I want to force ssh to always use the program specified by SSH_ASKPASS. In my case the program is just a bash script returning the passphrase. The problem is, as the ssh documentation says: If ...
0
votes
2answers
22 views

what does it mean by email address as label generating pubic/private rsa key pair?

In https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/#platform-linux ssh-keygen -t rsa -b 4096 -C "your_email@example.com" # Creates a new ssh key, using the ...
80
votes
8answers
116k views

ssh-add complains: Could not open a connection to your authentication agent

I've been trying to get ssh-add working on a RaspberryPi running Raspbian. I can start ssh-agent, when I do it gives the following output into the terminal: SSH_AUTH_SOCK=/tmp/ssh-06TcpPflMg58/...
0
votes
0answers
31 views

How I can directly login to rails console through ssh?

Time to time I repeat the following commands: ssh username@servername cd /projects/rails_project bundle exec rails c production I want to create a shell script, and make alias for this file for run ...
2
votes
2answers
2k views

Script to get file from SFTP and run it

We have 5 servers running our code: A, B , C, D and E. From a local machine, we sftp the file to A. Then ssh id@A su - applicationname sftp id@A get <file> bye tar -xzf <file> logout ...
5
votes
1answer
73 views

Still prompted for password after creating authorization keys

I have a Macbook pro, and I successfully set up authorization keys so that I didn't have to enter a password each time I log in to a remote machine. Years later I have a new computer that I have put ...
1
vote
1answer
35 views

SSL related “undefined reference” on libssh2 and libcurl libs when compiling C on OpenSUSE

I been trying to compile a C software but I'm getting 'undefined reference' over SSL libraries I think. The libraries it mentions are there, actually I compiled them all again: zlib + openssl + ...