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

learn more… | top users | synonyms

1
vote
2answers
676 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
12k 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 ...
-2
votes
1answer
45 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
9 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
39 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
22 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
47 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
248 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
62 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
438 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
21 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
316 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 ...
0
votes
0answers
2k 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
38 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
43 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 ...
0
votes
1answer
51 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
46 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
33 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 ...
1
vote
2answers
34 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
120k 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
35 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
85 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
57 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 + ...
4
votes
2answers
338 views

SSH broken pipe, message authentication code incorrect

I have set up a Ubuntu server that I plan on using to backup my macbook air using rsync. But every time I use rsync, or even scp, the connection drops, with one of the following errors: ...
0
votes
1answer
40 views

Using a username starting “##” at a bash prompt

Some clown made me a sftp username that started with ##. Now I don't know if the command is wrong or the ftp server isn't responding for certain. Could someone please confirm for me that this should ...
1
vote
0answers
44 views

How do I tell fanout to forcibly allocate a pseudo-terminal? [closed]

I am using William Stearns' fanout (discussed in a Dr Dobbs article by J.D. Baldwin on 2004-04-07). Whilst running it am seeing the message Pseudo-terminal will not be allocated because stdin is not ...
0
votes
1answer
37 views

can't find running process which I started via SSH yesterday

Yesterday I connected to my Developer VM Debian Linux via SSH. I started "Mamute" which is a open source stackoverflow clone etc. As I restarted my machine today I reconnected as root and wanted to ...
6
votes
3answers
5k views

A Web ssh/telnet client

I'm in kind of a tight spot right now. I wanted to know if someone has seen a HTML, or PHP web ssh client as both my company and school block everything besides port 80. I'm a control freak when it ...
0
votes
1answer
83 views

ssh/git does not use GUI to ask for password after upgrade to to Ubuntu 16.04

I used to run Ubuntu 14.04 on my computer. Whenever I used ssh keys to log in to various servers, I used to get a GUI pop-up dialog asking me for the password for my key. After entering the password ...
1
vote
1answer
63 views

script ssh login to server and pass root password

I have written an expect script to automate the login process for ssh. My user account has rsa keys setup but once I log in I want to switch to root but the remote server is hanging on the password. I ...
13
votes
8answers
12k views

How to rsync files between two remotes?

I would like to transfer files between two remote hosts using on local shell, but it seems rsync doesn't support synchronisation if two remotes are specified as follow: $ rsync -vuar host1:/var/www ...
2
votes
3answers
73 views

Problem with sudoing ssh - `sudo ssh …` fails

I am trying to use git salt ssh access (which runs with root). The error is always: Permission denied (publickey). I managed to reproduce the problem, simulating what salt may be doing, by ...
55
votes
7answers
73k views

What does the Broken pipe message mean in an SSH session?

Sometimes my SSH session disconnects with a Write failed: Broken pipe message. What does it mean? And how can I keep my session open? I know about screen, but that's not the answer I'm looking for. I ...
-1
votes
1answer
72 views

How to automate putty commands when connection is through ssh? [closed]

Two files are there. I want to run cmds.txt cmd in ssh port connectivity . how to run txt file with putty. plz suggest some ways. if suppose this is a sv.bat (batch file) Inside batch file there is ...
137
votes
5answers
149k views

Why do I need a tty to run sudo if I can sudo without a password?

I have configured sudo to run without a password, but when I try to ssh 'sudo Foo", I still get sudo: sorry, you must have a tty to run sudo. Why does this happen and how can I work around it?
0
votes
0answers
54 views

IP address not seen on ifconfig

I've imported a virtual machine from work onto my home pc and I can't connect to it through SSH. I've checked ifconfig and there is no IP address next to inet. I thought it could be something with ...
15
votes
2answers
28k views

Meaning of “Connection closed by xxx [preauth]” in sshd logs

We have a Windows batch script, which connects automatically to a linux server via PLINK (putty). There is NO public private key authentication, the user and the password are in the script. On our ...
1
vote
0answers
61 views

What is the difference between autossh and ssh that is put in a while loop?

From this website it says that: Autossh is a program to start a copy of ssh and monitor it, restarting it as necessary should it die or stop passing traffic. But I really can't see the ...
13
votes
2answers
40k views

Server does not accept public key for ssh login without password [duplicate]

Possible Duplicate: Why am I still getting a password prompt with ssh with public key authentication? I have ssh access to two sever. One old one and one new one. For the old one I use the ...
1
vote
1answer
57 views

2 Factor Authentication - ask about token only at first login

I've set up google OTP authentication and RSA key authentication on my server but it's very anoing, after some time, to type OTP from phone every time. I would like to know if there is any possibility ...
0
votes
1answer
23 views

Connect To A Specific Host

So I am working in a place which is designed viz. So whenever I login with ssh I am thor@my_username. Now I am asked to access the host named loki. How can do that? I only have the thor ip-address:...
4
votes
1answer
29 views

Determine which server is the best choice for high resource-consuming task

I have a time and resource consuming task I am running every once in a while (make), which can be run on any one of a servers pool. Problem is, I am not the only user running make, and when two or ...
-1
votes
1answer
63 views

I SSH into a linux server via putty, and i have a linked drive on my windows machine. How can I access files on other drives?

I am using a linux server to run scripts and manage a database. I get to this using a SSH through PuTTY. On my windows machine there is a mapped drive to a directory (/mapped_drive/) on this server (X:...
0
votes
0answers
158 views

Ubuntu 16.04 LTS - ssh connection times out using host-only adapter

I have set up a Ubuntu 16 LTS server in VirtualBox and have added a Host-only Network adapter. The IP address is set from what I can see running ifconfig but I am unable to ssh in from bash, the ...
-3
votes
2answers
46 views

How can I check the version of BIND on Debian [closed]

I am using Debian and when I give the command sudo named -v it returns command not found. I want to verify that my ssh server (sshd) is using bind version 9.1.3 or later so that it both is IPv6 ...
-1
votes
4answers
9k views

What is the equivalent of telnet localhost 25 with ssh?

What is the equivalent of telnet localhost 25 using SSH ? Clarification : I would like to have an SMTP connection with a server using SSH, just like it can be done with a command like telnet ...