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

learn more… | top users | synonyms

1
vote
1answer
6 views

Run SSH SOCKS5 proxy on system startup

I want to setup a linux server (Ubuntu Server 14.04 in this case) to be used as a SOCKS5 proxy by software on another client. Now this is pretty easy by running ssh -f -N -D 0.0.0.0:1080 localhost as ...
0
votes
0answers
8 views

.Xauthority file is empty

I have been trying to ssh -X to my cluster running OpenSUSE 11.2. It used to work well for me. But now I get this message: X11 connection rejected because of wrong authentication. Failed to open the ...
0
votes
2answers
10 views

Chrooted SFTP user write permissions

I have a setup with sftp only users: Match Group sftponly ChrootDirectory %h ForceCommand internal-sftp AllowTcpForwarding no I get the following message in my secure.log: fatal: bad ...
2
votes
1answer
37 views

Not able to SSH into VM

I want to SSH from my host into my guest VM (CentOS). I can Ping. SSH is running. Port 22 is open. Looks like firewall is off / IPtables are all open. (this is not normal?) When I SSH into my ...
0
votes
0answers
21 views

Is there a way to pass a Password to ssh automatically? [duplicate]

I have to access a certain set of Linux machines where control is governed by VPN access, and passwords on the individual systems are effectively not kept secure or secret (security through ...
1
vote
0answers
21 views

Can use Password authentication with SFTP even though “PasswordAuthentication no” in /etc/ssh/sshd_config

I have enabled SSH-keys based authentication on the Ubuntu 14.04 server, disabled root login using SSH and can connect successfully using SSH-keys based authentication with my user account blahblah on ...
0
votes
2answers
47 views

How to ssh with private key from other linux system?

I log in to my server (server1) with user, password and private key: key.ppk. I want to ssh from server2 to server1. So I do the following: ssh -i /srv/key.ppk root@XX.XX.XXX.XXX When ...
2
votes
1answer
29 views

How to connect to ssh-server running on embedded linux without /etc/passwd?

After installing ssh server on my remote machine (which runs embedded Linux), I tried to connect to ssh server from host machine but it failed. This is because I could not specify user account when ...
1
vote
1answer
32 views

How to check my account on embedded linux without “/etc/passwd”?

On some embedded linux systems, there is no /etc/passwd file and /etc directory is not writable (which means I cannot set user account and password?). Then what is my (default) account name and ...
1
vote
1answer
40 views

ssh public key copying

This question is repeating from Stack Overflow because i don't get answer from there. I'm trying to make a simple script that will import the public key to other servers. I have made 2 options you ...
4
votes
0answers
29 views

How can I determine which SSH keyfile was used to authenticate a login?

We have a hosted CentOS 6.5 server in which we have a single user account. That account has been configured to use SSH keyfile authentication for the users who need to access it. I would like to be ...
3
votes
1answer
30 views

notify-send not working under ssh

Maybe this is answered somewhere else, but I didn't see it. I am running Ubuntu 14.04. When I SSH into my machine, for example: ssh <user>@<machineip> notify-send "Hello" I don't see ...
4
votes
2answers
44 views

How to pipe a remote file to stdout over scp or sftp?

Using ssh, it is easy to print the contents of a file using ssh host 'cat file.txt' When ssh is disabled, and only SFTP is enabled, running the previous command gives the following error: ...
2
votes
0answers
44 views

A window asking me to enter my ssh passphrase is popping up randomly. Why?

I'm on Ubuntu 14.04. For a few weeks now a small window keeps popping up randomly, grabbing my keyboard and asking me to enter the passphrase for my ssh key. The Window's title says "OpenSSH", and it ...
0
votes
1answer
26 views

VPS SSH and my OWN IP

Is it possible to to stay in total anonymous mode for the VPS provider? I have got a VPSVZ machine with UBUNTU server. Is it possible to do anonymous tunneling: VPS1 -> VPS2 -> VPS3 (all UBUNTU) ...
1
vote
0answers
26 views

In tmux session, cannot connect to X server after ssh'ing

At work, I have a desktop with a monitor and a few running tmux sessions. At home, I frequently ssh into that desktop and enter my running tmux sessions. When I ssh from home, I do not want to use ...
2
votes
1answer
52 views

SSH: public key authentication without authorized_keys file

I have a lot of ssh public key logins on a Linux server, e.g.: Jul 25 11:41:01 host sshd[24594]: Accepted publickey for root from xxx.xxx.xx.xx port 33374 ssh2 This is strange for me since there's ...
0
votes
0answers
17 views

Making proxies on Debian

Hi guys I am trying to create SOCKS Proxies on my VPS and currently am not getting too far so any help is well appreciated. Here's a few details on my VPS: It is running Debian linux, has 512mb ram ...
1
vote
1answer
18 views

Maintain Xserver applications running even after closing the remote conecction

We have a Ubuntu server (mainly a compute server), which does not have X-server installed on it. One can use something like Byobu or Screen to have programs running on the server even after the SSH ...
1
vote
2answers
32 views

How to set up a global interval between SSH log in attempts?

I would like to make it impossible to make more than a single remote log-in attempt in a number of seconds regardless the client IP address (except some trusted white-listed addresses perhaps). So ...
1
vote
1answer
48 views

Memory buffer in a bash script

I have recently finished a script that will ask for a hostname and automatically take the argument of the function and ssh into one of my work servers. Here is a copy of my script: #!/bin/bash echo ...
0
votes
1answer
35 views

how to install VMware vSphere Client on centos 6.5

How can I install "VMware vSphere Client" on CentOS 6.5?
1
vote
2answers
56 views

-bash: cd: .ssh/: Permission denied

When I type in cd .ssh in terminal, it returns with -bash: cd: .ssh/: Permission denied. Now I cannot add my ssh keys to ssh. When I type ssh-add ~/.ssh/idname it says /Users/Dan/.ssh/idname: ...
0
votes
3answers
78 views

Connectivity between 2 remote Linux machines

I have two remote machines, I'm running a script on one of them. There's some part of the script that should be running on the other one, then the script will continue in its further tasks/commands. ...
1
vote
3answers
68 views

Possible corrupt passwd file

I did a recovery of the server and reset the root password to a new one because for some reason, the original was not being recognised. It still is refusing to accept the password in ssh for root. ...
5
votes
2answers
553 views

How to ensure SSH port for example is only open to a specific IP address?

This is my /etc/sysconfig/iptables: it has two ports open 80 apache and 22 for ssh. # Firewall configuration written by system-config-firewall # Manual customization of this file is not recommended. ...
0
votes
1answer
58 views

Create ssh root password

For some reason, after a plesk update, I can no longer login to ssh as root using my old password. I have tried to create a user with: /bin/bash & /bin/bash (chrooted) in plesk Which lets me ...
5
votes
1answer
60 views

Linux: $SSH_CONNECTION is set even without SSHing to the server

I have a remote server and I am writing a script in the server and want it to fire only when I SSH. I thought of using the $SSH_CONNECTION and $SSH_TTY for this purpose. I found out that when I have ...
2
votes
2answers
56 views

Call the script after disconnecting from server

I have a script I made for work that will call a function that takes an argument. I use the arguments to ssh into our servers. My question is: Is there a way to call the method so that if/when I get ...
2
votes
0answers
55 views

Cannot connect to ssh server

I am having trouble connecting to my ssh server. It responds with a lengthy error message about no network etc. but it is the last message that concerns me: Sometimes, such troubles can be caused ...
3
votes
2answers
60 views

transfer a file to remote dir only if doesn't exist without replacing

I'm using CentOS linux. In one line cmd, that returns 0 if success, non-0 if failure, I need: Transfer a file to a remote server. Don't transfer the file if filename exists in remote server ...
4
votes
1answer
207 views

Need to ssh from one Amazon EC2 server into another one

Basically I need to be able to connect from one EC2 instance to another using SSH. I run the command ssh -i path-to-pem-file ec2-user@dns-address-of-ec2-instance, and it times out. I set my security ...
5
votes
1answer
88 views

2 Factor Authentication in SSH using public key and PAM

I'm trying to setup 2 Factor Authentication. I want the user to login successfully if: The public private/public key matches (authentication method: publickey) or the password is correct My pam ...
6
votes
1answer
110 views

ssh from linux into mac - permission denied

I'm running a Oracle Linux VM on a Windows 7 host and I'm trying to ssh into my MacBook. I've already created the private/pub keys in my Mac. I have copied the id_rsa.pub contents into the ...
2
votes
1answer
35 views

How to change ssh log location from /var/log/secure to custom location in rhel 6?

By default in RHEL 6, SSH server logs are sent to /var/log/secure. I want to change this location to a custom one. Is it possible to do that? I have tried modifying the rsyslog.conf file, but it does ...
1
vote
2answers
44 views

Copy ssh public key to multiple Linux hosts

I am trying to copy .ssh/id_rsa.pub from our central server to multiple servers. I have the following script which I usually use to push changes to the different servers. #!/bin/bash for ip in ...
3
votes
1answer
34 views

Restricted ssh remote execution with arguments

I need to enable remote execution of a shell script on a server, but deny all other access. The script is a toggle that accepts a single parameter (on/off/status). This comes close to answering my ...
2
votes
2answers
56 views

Piping tcpdump traffic via SSH - but no root ssh access

The situation I would like to use Wireshark to analyze traffic on one of our servers, but I don't want to install Wireshark on the server itself. I understand that I can pipe tcpdump traffic via SSH ...
1
vote
0answers
13 views

ajaxterm using proportional font

I have Ubuntu 14.04 LTS, Apache 2.4.7, Python 2.7.6 and Ajaxterm 0.10-12ubuntu1. Ajaxterm is proxied via Apache. Here's the apache.conf excerpt: # Suppresses the Via header ProxyVia Off # Do not ...
16
votes
2answers
217 views

What's the purpose of the randomart image for user (not host) SSH keys?

The ssh-keygen generates the following output: The key fingerprint is: dd:e7:25:b3:e2:5b:d9:f0:25:28:9d:50:a2:c9:44:97 user@machine The key's randomart image is: +--[ RSA 2048]----+ | .o o.. ...
1
vote
0answers
77 views

Have tmux wait until I SSH in, to complete rest of Tmuxinator script

After recently discovering tmux and Tmuxinator, I've been trying to set up a development environment to use. Per protocol, we aren't allowed to store passwords/passphrases in scripts. So what I'm ...
2
votes
1answer
40 views

Ctrl-S doesn't work in rtorrent when accessed via screen. Can't start torrents

I run rtorrent remotely on a seedbox. When I log in with a web interface I'm able to start torrents, and when torrent files get dropped into my watched folder that works too. However, when I try to ...
-4
votes
1answer
32 views

connect remote host without password in linux [duplicate]

Am trying to connect remote host by using ssh: ssh xxxx@hostname. It will connect by asking password. But I need to connect host with out password.
2
votes
1answer
32 views

vim: Use different colorscheme when connected over SSH

On my desktop I use the hbrid color scheme in vim, with the preferred colors set for my consoles 16-color palette (as described in the README). However, on my laptop, I use the solarized color ...
1
vote
0answers
46 views

ssh from an unix server to a windows server (running Sysax) fails

We are doing a sFTP from an Unix server to a Windows server and also a ssh, from the Unix server to the Windows server, to execute a file present on the Windows server. These 2 steps worked well. ...
7
votes
3answers
454 views

Run a diff between local and remote file

I'm connected on a host via ssh and I'd like to compare (let's say with diff) a certain config file against its counterpart on another host, also accessible via ssh, without having to manually ...
2
votes
1answer
58 views

SSH config file + shell script help

Well, what I want to do seems a bit convoluted but its the only way I can think of to get the result I want. So here goes. I want to automate ssh to my Pi, in the following fashion: My Pi boots up ...
2
votes
2answers
29 views

Allow multiple remote connections to an ssh Dynamic forwarded port

Let us assume I have three machines A - Server to which I am sshing to B - Client from which I am sshing C - Another Client in B's subnet Now, I set up dynamic port forwarding for port 1235 by ...
1
vote
1answer
65 views

Password-Less SSH Login not working [closed]

I create a SSH Key file on Server A using RSA method ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/home/oracle/.ssh/id_rsa): Enter passphrase (empty ...
1
vote
2answers
48 views

Reject ssh connections made from proxies

I was seeing this question which was concerned with blocking access to the users who do not belong to a particular region. I am sure that blocking is possible but I see there is a workaround to this. ...