Questions tagged [ssh]

Secure Shell (SSH) is a protocol primarily for encrypted shell connections. This tag is also used for questions about sshd and openssh, the two standard applications for using SSH.

Filter by
Sorted by
Tagged with
0 votes
1 answer
4k views

Only allow user SSH access to one directory

I have a server running Centos 6.4 and I need to allow a freelancer access to one folder on the server to upload some code and do some testing - I have set their home directory in /etc/passwd to: ...
bhttoan's user avatar
  • 650
0 votes
1 answer
3k views

OpenSSH client sends environment variable it should not

I have a host that doesn't have the termcap entries for non-standard terminals and I cannot add them (policy). I use tmux which sets a terminal type to something that this device does not recognise. ...
Marcin Kaminski's user avatar
14 votes
1 answer
15k views

autossh does not kill ssh when link down

I have started my autossh witt a poll time of 30 s: AUTOSSH_POLL=30 AUTOSSH_LOGLEVEL=7 autossh -M 0 -f -S none -f -N -L localhost:34567:localhost:6543 user1@server1 And it is working fine: Sep 5 ...
blueFast's user avatar
  • 4,350
-1 votes
1 answer
10k views

Git Extensions using Putty: The Servers Host Key is Not Cached in the Registry (but I think it is)

Following the commands below, I am under the impression that my key is added to "the registry". What am I doing, or where is putty screwing up. I should note that scp alone works because I coppied my ...
Matthew Hoggan's user avatar
1 vote
0 answers
342 views

Automatically add rules to iptables when an user logs in or logs out with ssh?

I'm looking for a solution to automatically add couple of rules to iptables when an user logs in and remove those rules when it logs out. I'd like to get somehow get the ip address of the user from ...
Simple User's user avatar
3 votes
1 answer
2k views

SSH locale wrong

I have a debian server with locales set to hu_HU.UTF-8, and if i log in trough console it works perfectly in hungarian. It also worked with ssh logins until i disabled PAM in the sshd config. Since ...
hpeter94's user avatar
0 votes
0 answers
66 views

Remotly syncing NAS behind routers I don't have access to

We have several NAS (WD My Could Mirror) that travels to multiple cities and are fed locally with images, audio, video, etc. This content needs to be synced to our main office. I am trying to use ...
Tristan's user avatar
  • 143
1 vote
1 answer
4k views

Access to ESXI using Ansible (python)

I'm want to execute a command using Ansible on an remote ESXi but it seems that a module grp is missing. # ansible esxi -a "date" esxi | FAILED >> { "failed": true, "msg": "Traceback (...
Arka's user avatar
  • 173
7 votes
2 answers
868 views

Securing the primary Ansible user

It seems that there are only two reasonable approaches for the primary Ansible user: Using root Using another user (e.g., ansible) with NOPASSWD sudo access The first option is a no-go since I ...
Belmin Fernandez's user avatar
5 votes
2 answers
9k views

Deleting a Key Pair for AWS EC2 Instance with EBS

I have an AWS EC2 Instance using EBS and I want to stop the use of the current private key, and use a new one. As I understand it, merely deleting the key pair on the AWS Console just deletes the ...
nhuff717's user avatar
-5 votes
2 answers
162 views

Disable ssh auth by keys

Usually people try to disable ssh login with password only. I'm asking about reverse situation. Does sshd_config allow to disable authentication with keys only?
Rob's user avatar
  • 1
0 votes
1 answer
47 views

Does using -o with ssh not read the config file?

The title pretty much explains my entire question. The reason I'm asking is that I have a specific IdentityFile set for a certain host but the command that is being run which is out of my control uses ...
user240509's user avatar
83 votes
12 answers
69k views

How can I run arbitrarily complex command using sudo over ssh?

I have a system that I can only log in to under my username (myuser), but I need to run commands as other user (scriptuser). So far, I have come up with the following to run the commands I need: ssh -...
VoY's user avatar
  • 1,285
0 votes
1 answer
156 views

when ssh from mac to ubuntu server, it will be added to hosts.deny

information I asked the same question in stackoverflow.com and was told that this would be a better place to ask. I'm running an Ubuntu Server 13.10. I can connect to it using SSH from any computer ...
Poehli's user avatar
  • 103
3 votes
2 answers
2k views

RSync stalls after 32768 bytes

I have an issue which I am struggling to understand. I have a server which is hosted by a business parter on their network but my team is responsible for installing and configuring software to this ...
macbutch's user avatar
  • 141
0 votes
3 answers
2k views

Deny connection to and from a specific hostname on Ubuntu/Apache2

My wordpress EC2 server was probably hacked. When running iftop command I can see that my server sends and recieves data from a hostname name "i157panamamails.com". This hostname never goes away and ...
Liron Harel's user avatar
0 votes
1 answer
2k views

Site to site ssh tunnel

I have two virtual environment at different locations, and I want to set up site to site ssh tunnel for contact between those networks. I have configured the ssh tunnel on both sides with routes to ...
xteron's user avatar
  • 11
-3 votes
2 answers
730 views

How to use same static IP from anywhere [closed]

Not sure if this belongs here or is a dumb question so feel free to kindly tell me to get out of here(I'm New to all of this). So I need to be able to have SSH access to a server for pulling down ...
user240166's user avatar
15 votes
2 answers
3k views

Why does Google recommend removing SSH keys from GCE for security?

The below reference to Google documentation is no longer true. Google recommends removing SSH keys from GCE instance to secure SSH. That does not make any sense to me. The keys are there for a ...
Martin Prikryl's user avatar
7 votes
1 answer
7k views

SSH fails with host not found, but NSLookup finds that host

I have a small business network with several servers on it. To simplify things, I added a BIND9 DNS server on one of them, with entries for each of the local machines, i.e. vpn.example.com, web....
Chris's user avatar
  • 277
7 votes
1 answer
6k views

Making proxy available on remote server through ssh tunneling

I know I can use ssh tunneling to create a "proxy" on my machine so that I can make all the traffic generated locally go through a remote server. Like this: $ ssh -D 12345 myuser@remote_ssh_server ...
Filipe Correia's user avatar
4 votes
1 answer
750 views

Can I use something like a tunnel for SSH in this Linux/Windows Remote Desktop scenario?

I have a Linux server (call it server-L) which i cannot directly ssh to it. In order to ssh it i should connect to a windows server(call it server-W) and then make ssh connection from it to my Linux ...
VSB's user avatar
  • 165
1 vote
2 answers
57 views

Signal delivery system for routers [closed]

My network have one server and many routers (around 300 and will be more, all working on OpenWRT). Routers don't have public IP and server can not connect to them. But i need to know that routers is ...
Ilya Manyahin's user avatar
2 votes
1 answer
187 views

Rsync over ssh syncs whole source folder instead of only missing files

I RTFMed rsync to the bone, but I just cannot figure out what I'm doing wrong here. I'm trying to sync two folders across SSH. Folders are identical save for one file, as you can see here: nick@...
dijxtra's user avatar
  • 145
2 votes
1 answer
6k views

How to get the list of SSH tunnels connected with the username used?

The connection is established from Desktop(D) to Server(S) with ssh -D PORT username@Server. From the Server, the list of ssh users connected can be obtained with who, but the ssh tunnels are not ...
randunel's user avatar
  • 125
0 votes
1 answer
337 views

Deal with brute force ftp attack [duplicate]

While Checking the /var/log/secure on my centos server have found lot of attempts of failed login by using unknown usernames, from a list of ip from Japan And China How to hide my server from these ...
echoashu's user avatar
  • 115
-1 votes
1 answer
2k views

Move directory from local machine (linux) to SSH server

i am trying to move one my folders from my local machine to my ssh connection. i have been trying with the following command: scp -r /var/www/foo/ root@******/var/www/foo However when i try i get ...
Marc Rasmussen's user avatar
-4 votes
2 answers
4k views

Where to safely store ssh private key? [closed]

I'm using ssh keys to log in some servers. My private keys hasn't a passphrase, but I'd like to store it in an encrypted online storage service. Is that safe? Are there any free available options? If ...
kinder's user avatar
  • 35
-2 votes
1 answer
3k views

How to get rid of firewall blockage to ssh to my ec2 instance [closed]

I've made my ec2 instance on AWS and I worked on it at home like a charm and everything went fine (connection wise) Today I went to the library and when I tried to ssh into my ec2 using PuTTy as I ...
user1794499's user avatar
1 vote
1 answer
5k views

SCP transfer doesn't work and SSH ls freezes

I am trying to copy some file via ssh with a SSH-RSA public key. I've already accepted the host key in my server and viceversa so the keys are synchronized. Now I try to connect via SSH to the host ...
Javier Suárez's user avatar
-1 votes
1 answer
331 views

Login by ssh , change the remote PS1 and don't quit the remote ssh shell [closed]

I want to change PS1 when i ssh another centos strshell = 'PS1="remote!"' os.system("ssh -i %s -l%s -p%s %s %s"%(SSH_KEY,SSH_USER,SSH_PORT,des,strshell)) ssh quit automatically. I want to ...
michael_stackof's user avatar
1 vote
2 answers
422 views

Issue with sharp in host vars Ansible

Since # is considered as a comment in /etc/ansible/hosts I'm unable to use a password containing a sharp. [hosts] host1 ansible_ssh_user=user ansible_ssh_pass=userpass ansible_su_pass=My#Password ...
Arka's user avatar
  • 173
3 votes
2 answers
1k views

How to run sshfs through ssh command?

I tried to run sshfs through ssh in one command. For example, if I do : $ ssh user@host user@host$ sshfs host:/src /target Everything is ok. Now, if I tried this in one command : ssh -t "sshfs ...
Koryonik's user avatar
  • 133
5 votes
2 answers
10k views

ssh timeout issue connecting to an EC2 instance on OS X

I am new to AWS and not a networking expert but curious to know more about it. I created a VPC with a public subnet only. Then i created an EC2 instance using an Ubuntu 14.04 64-bit pv AMI image (ami-...
mamusr's user avatar
  • 61
2 votes
2 answers
2k views

How to get the Host value inside ~/.ssh/config

Within a ~/.ssh/config or ssh_config file, %h will give you the HostName value, but how do you get the Host ("alias") value? Why would I want to do that? Well, here's an example Host ...
iconoclast's user avatar
  • 1,830
0 votes
1 answer
439 views

Amazon Security Groups: Change Inbound SSH Port

How can I change the Inbound SSH Port on my Amazon Security Group? When adding a new rule for SSH, the Port defaults to 22 and cannot be edited. Is this possible? Please note: This question is ...
csi's user avatar
  • 1,585
0 votes
2 answers
1k views

Run Bash Script Another Server

I want to run command one by one, for change the names of the directories on the server. When I run script, directories renamed in server 1. But, directories are not found in server 2. What the ...
psce's user avatar
  • 1
0 votes
2 answers
835 views

Can't ssh from CentOS 6.5 to SUSE LINUX 10.1

We have quite an old installation of SUSE LINUX 10.1 (i586) in the office. The problem shortly: I can successfully ssh to it from machines in the same LAN (192.168.1.0) but not from machines in the ...
Pavel Tankov's user avatar
-2 votes
2 answers
8k views

FTP and SFTP logs track in CentOS

How it is possible to track the changes made to a directory using tools like FileZilla or XFTP ? because we found some files suddenly got missed from server, in history also nothing was found so ...
user11538's user avatar
1 vote
1 answer
2k views

Run sshd on multiple ports but different domains [duplicate]

I want to run my sshd server on multiple ports but different domains. The server should be reachable as following: ssh -p 12345 example.com ssh -p 22 git.example.com I tried to modify /etc/...
fechnert's user avatar
  • 133
0 votes
1 answer
1k views

fail2ban block ports rules iptable

I just installed Ubuntu Server 14.04 and don't have much experience with IPtables. I am trying to get a basic setup going where I only accept SSH connections on port 22 and 2222. I actually have that ...
J Spen's user avatar
  • 103
1 vote
3 answers
2k views

SSH Public Key Authentication only works if active session exists before

I have a rather strange problem with my SSH configuration. I set up my server with the help of a Remote Access Card and configured everything with a KVM viewer. So while being logged into the server ...
Webx10's user avatar
  • 65
2 votes
2 answers
5k views

haproxy transparent mode on 14.04

As per my previous question SSHD real-ip behind haproxy - I'm now attempting to setup HAProxy to transparently pass the IPs to the backend services. tproxy modules loaded / and supported in haproxy (...
Thermionix's user avatar
-1 votes
1 answer
4k views

After password change, SSH connection won't work

I've been connecting to my server via SSH for years. Always works fine. Today I decided to change my password. After successfully changing the password, and then trying to connect again, I received ...
Bryan Deemer's user avatar
0 votes
2 answers
2k views

SSH into EC2 with dynamic public IP address

Typically I set ssh aliases as follows: ssh -i ~/path/key.pem [email protected] But with EC2 instances, the public-host-name changes whenever an instance is stopped and ...
Kyle Cureau's user avatar
  • 1,537
5 votes
3 answers
8k views

SSHD real-ip behind haproxy

I'm trying to setup an ssh over https connection using haproxy. I'm currently looking for a way for SSHD to get the source ip from haproxy, similar to reading X-Forwarded-For or X-Real-IP headers. ...
Thermionix's user avatar
0 votes
1 answer
1k views

Does Git server over SSH requires SFTP?

Does Git server over SSH requires SFTP module? Official manual lacks info here: http://git-scm.com/book/en/Git-on-the-Server-Setting-Up-the-Server
Kraski's user avatar
  • 3
0 votes
1 answer
1k views

How does ssh work when client and host are on the same machine?

I illustrate my question with the help of docker containers but this example is orthogonal to the rest of the problem. In fact any program that allows the use of bridge interfaces and ssh would do. I ...
lord.garbage's user avatar
2 votes
2 answers
6k views

SSH over HTTPS through haproxy

I'm trying to setup an ssh over https connection using haproxy. I haven't found any working examples, so any help would be appreciated! client config; ~$ cat ~/.stunnel/stunnel.conf pid= client=yes ...
Thermionix's user avatar
-1 votes
4 answers
12k views

need to make password less login for same linux server with same user [duplicate]

I need to make passwordless login for same linux server with same user. [airwide@eir ~]$ hostname -i 10.3.7.73 [airwide@eir ~]$ ssh [email protected] [email protected]'s password: how can make to ...
Asif Patel's user avatar

1
91 92
93
94 95
180