SSH (Secure SHell) is a protocol for running commands on a remote computer.
7
votes
3answers
1k views
How to close (kill) ssh ControlMaster connections manually
With the following .ssh/config configuration:
ControlMaster auto
ControlPath /tmp/ssh_mux_%h_%p_%r
ControlPersist 4h
How to close the persisting connection before the 4 hours?
I know you can make ...
0
votes
2answers
652 views
SSH “command not found” for Zsh
Im using Zsh on the client and server. When I use ssh to run a command on the remote server it can not find the binary:
ssh gt "cd /home/****/app/staging && bundle exec rake db:migrate ...
2
votes
1answer
629 views
Can sshd restrict client tunnel endpoints to localhost?
Normally an ssh client can request TCP forwarding using the -L command line option. The server can disable this completely using AllowTcpForwarding no. If enabled, the client can request to connect ...
5
votes
3answers
5k views
How can I tell what version of linux I'm using?
Often times I will ssh into a new client's box to make changes to their website configuration without knowing much about the server configuration. I have seen a few ways to get information about the ...
1
vote
1answer
1k views
CentOS 5.5 SSH with Key for non ROOT user
I tried pretty much everything I could to make this work. I spent literally 6 hours on research and nothing helps to remove "Server refused our key" error.
My username I tried to make is "Testuser" ...
1
vote
4answers
181 views
Access a linux machine from a windows machine
I have two laptops, one is installed with Ubuntu 10.04, the other one is installed with Windows XP. The Ubuntu laptop is located in one place with internet connection while the windows laptop is in ...
3
votes
1answer
239 views
SSH Public key comment separator
I've created a SSH authentication key (with ssh-keygen) in two different servers, both with a useful comment, but the public key of one server has == between the key and the comment, while the other ...
3
votes
1answer
540 views
How to enable nagios user created by yum to use check_by_ssh
I've used yum install nagios on an Amazon Linux instance, and it created a nagios user with shell /sbin/nologin and homedir /var/spool/nagios. This is the behaviour on EC2.
I want to use check_by_ssh ...
1
vote
2answers
4k views
How to ssh to remote server using a private key?
I have two servers. Both servers are in CentOS 5.6. I want to SSH from Server 1 to Server 2 using a private key I have (OpenSSH SSH-2 Private Key).
I don't know how to do it over unix. But what I did ...
0
votes
3answers
219 views
Read first line of a command's output. Command connects me to a remote terminal
Part 1
Say I have a command my_command that outputs multiple lines.
I would like to capture the first line of my_command's output as soon as it's ready in a script, while keeping my_command ...
3
votes
2answers
400 views
How is FireFox running on a virtual machine that has no display?
I am using a Red Hat virtual machine, accessible only remotely. However when I use the top command, one of the displayed processes taking up the most memory is firefox, located at ...
5
votes
1answer
3k views
Switch VI to use backspace key instead of Control+H for backspace?
I'm on Solaris 10 and by default vi version SVR4.0, Solaris 2.5.0 is installed.
The system was set up so that when I ssh to it Control+H does backspace, and backspace outputs ^?
I added stty erase ...
2
votes
3answers
427 views
Do I need a desktop to run a GUI?
I am setting up a lightweight VM, following the guide in the Ubuntu Documentation
What I want to be able to do is ssh into the VM and then launch a GUI application. I don't need / want a desktop.
...
1
vote
1answer
244 views
How do I set Keyboard and profile preferences when connecting to Solaris via SSH?
I'm connecting to a Solaris box from Mac OS X. Whenever I have connected to linux boxes in the past it has been much easier to navigate around. How do I fix these configuration issues on Solaris?
...
8
votes
1answer
1k views
Limits of SSH multiplexing
I have the following entry in my .ssh/config file
Host AAA
User BBB
HostName CCC
ControlMaster auto
ControlPath ~/.ssh/%r@%h:%p
The above allows me to multiplex multiple ssh ...
3
votes
3answers
822 views
SCP works, but SSH doesn't (over wifi)
As the title says, when I'm using wifi at my office, I'm able to copy files to and from my server using SCP, but for some reason SSH is non-responsive. It just hangs, doesn't print anything, and I ...
10
votes
2answers
416 views
How to temporarily switch from ssh to my local shell?
I'm using cygwin. and use it with ssh to login into a ubuntu server. sometimes, I want to switch back to my cygwin and then quickly switch to ubuntu shell. How to do this?
1
vote
1answer
144 views
X Session / xdmx, keybindings lost
I am using startx (with Xdmx) to run a remote session on another computer. However, when I do this, keybindings (especially control, alt and the cursor keys) are not correct on the remote ...
3
votes
3answers
6k views
How to pull a file from a server using scp?
I am on machine A and want to pull a file from machine B.
A$ scp <myuserid>@hostB:<path of file in B> .
it says that:
scp: <path of file in B>: No such file or directory
But on ...
2
votes
2answers
181 views
Is it possible to detach a process started from one ssh session using another ssh session? [duplicate]
Possible Duplicate:
How can I disown it a running process and associate it to a new screen shell?
I started a process from one ssh session to a target machine T. The system from which I ...
0
votes
4answers
315 views
What is the proper way to automate SSH/local command?
I have gitolite on a Centos 5.5 box - when a repository is updated, I need to send a command to my bug tracking appliance to get the new commands. Right now, I have the following command working:
ssh ...
4
votes
1answer
317 views
controlling a process from a different session
So, I ssh into my remote computer and launch a process... time passes... my ssh session breaks. I log in again, and of course, I don't have access to the original process now. I can see it still if I ...
0
votes
1answer
249 views
Endlessly stuck in SSH login loop?
I've got a weird issue. Every time I hit Ctrl+D or use logout or exit, I see
Connection to remote.host.com closed
and then I am immediately logged back in:
Last login: Thu Oct 6 21:04:20 2011 from ...
2
votes
2answers
474 views
Bash prompt keeps disappearing
I have a weird issue where my Bash prompt often completely disappears on a backspace. Doesn't make any sense to me, but it happens often:
I can't really think of why this is happening. Am I ...
1
vote
2answers
172 views
ssh into folder
Is there a simple unix command to SSH into a folder? I'd like to make my aliases doing that extra step for me! Feeling dense.
Does this just not exist? ssh username@mydomain.com:/var/www/mysite
14
votes
2answers
1k views
SSH output isn't line buffered?
I'm running a script on a remote machine like this:
ssh $host "pip install -r /path/to/requirements.txt"
But the output isn't line buffered; instead of seeing one line returned at a time, all the ...
3
votes
4answers
168 views
Internet SSH Server Security Considerations
What steps should I take to reasonably secure my linux desktop before opening sshd to the Internet so I can connect from anywhere?
2
votes
1answer
273 views
How to disable SSLv2 in OpenSSH?
Due to the recent deprecation of SSLv2, is it possible to disable SSLv2 in OpenSSH?
Is OpenSSH even using SSLv2?
From digging around, I see the sshd is not compiled against openssl , but it is ...
13
votes
8answers
1k views
How can we limit the impact of ssh probes?
My webserver is constantly attacked by various IP addresses. They try five passwords and then change the IP address.
I have done various lockdowns like using ssh-keys and not permitting passwords, ...
1
vote
1answer
461 views
Difference in file listing for SSH and SFTP [closed]
I have SSH access to a server and I have never bothered to use SFTP until now.
I transferred a file using FileZilla to the server. However, the weird thing is that the file doesn't show up when I ...
1
vote
4answers
5k views
ssh Connection refused: how to troubleshoot?
I'm trying:
$ ssh eric@myserver
where myserver is a machine in the intranet. I can ping myserver or respond to HTTP on port 8080, etc, but when I try ssh, I get
ssh: connect to host myserver port ...
7
votes
1answer
282 views
self-recovering ssh tunnel over non-100% connection
I want to setup permanent ssh-tunnel for port forwarding to machine behind firewall. The connection is between university network (very reliable) and commercial microwave metropolitan connection to a ...
2
votes
1answer
193 views
Matlab R2010a over ssh -X displays empty windows
I'm trying to use Matlab R2010a over ssh, with X forwarding.
Now the X forwarding certainly works (for example xclock displays nice and fast)
But when invoking matlab, I get the splash screen ok, ...
16
votes
4answers
6k views
How to speed up X over SSH on a slow network connection?
Are there any specific recommendations on speeding up X applications over ssh on a slow network connection? In this specific case, I am accessing a server located in west coast from a laptop in east ...
1
vote
3answers
2k views
What is pageant for Linux? Saving SSH private key passwords
I want the computer like pageant, to show a SSH password prompt during boot time. I have my private keys stored in a Dropbox between 3 computers of which 1 is now Ubuntu.
I have googled for 2 hours ...
4
votes
3answers
4k views
ssh, start a specific shell, and run a command on the remote machine?
I am in a situation where several users are sharing the same user account on a remote machine. I have a "personal" directory where I wrote my own .zshrc file, and I would like to have a way to:
...
1
vote
1answer
246 views
Asking rsync to transfer files without connecting to the remote rsync server?
If I understand correctly, rsync tries to connect to a remote rsync server when transferring files via -e ssh. This worked well for me most of the time, but I am having problems rsyncing with a ...
0
votes
2answers
287 views
Files uploaded as root to the web server can't be overwritten by web application
Here is my problem. I am developing a web application in PHP/MySQL and I am having some problems setting up the accounts I need to use.
Development workstation: WinXP SP3, Eclipse PDT
Development ...
2
votes
1answer
2k views
How do I recover/kill an SSH session after losing connection?
I lost my connection while I was logged via SSH into my university server. Classic.
Now I can't log in since the session appears to be still running and
I get the error "Too many logins for ...
2
votes
3answers
5k views
How to make putty to not break my session after some time?
Each time putty is breaking session after some time if I am doing nothing.
There is no any time parameter on putty so how can I stay my putty ssh session always Alive ?
2
votes
2answers
72 views
Connecting to a machine which is behind a university gateway
I have a username and password to connect to a remote machine which is behind a university gateway (using ssh). However, I don't have a username and password to connect to the gateway itself.
I ...
0
votes
3answers
3k views
How to copy files from linux to windows using winscp from a folder which contains millions of files
I need to copy files from a linux machine to a windows machine where the only ports which can be open are for SSH (22).
I can connect to the linux machine using WinSCP but the problem is once I try to ...
5
votes
4answers
928 views
How to debug SSH port forwarding
This is an extension to ssh port forward to access my home machine from anywhere
I tried things mentioned there but I am not able to ssh to my machine.
Netgear router settings for port forwarding:
...
3
votes
1answer
768 views
User logged in by sftp does not show up in `w`
My server is Centos 5. I have a chroot environment set up with the following in my sshd_config
Match group sftponly
ForceCommand internal-sftp
ChrootDirectory %h
AllowTcpForwarding no
...
3
votes
2answers
1k views
SSH tunnel to router periodically hangs. TCP problem?
Something weird I've noticed since upgrading my office router to the Buffalo WZR-HP-G300NH. When I remote in using an SSH tunnel, the tunnel will "freeze" pretty often. The freeze lasts 1-2 minutes ...
0
votes
2answers
576 views
Unable to connect to host via ssh
I have problem connecting to host via ssh. It prompts me this error :
debianbox@debian:~$ssh cdcharles@hephaistos.rsr.lip6.fr
ssh_exchange_identification : Connection closed by remote host
The ...
3
votes
0answers
202 views
Emacs ansi-term and term not working well when I ssh into a remote machine
I have the exact same Emacs configuration on a local and remote machine, and when I run M-x ansi-term or M-x term on each of them individually everything works great.
However, if I run any of these ...
2
votes
1answer
136 views
Why can I still log in via SSH (PAM Auth) while `shutdown -k` is active?
Pretty straight-forward. Does SSH ignore the nologin file created by shutdown -k TIME?
Using PAM Auth to sync password database to users; if that makes a difference.
3
votes
1answer
1k views
Compress a directory using tar/gz over SSH to local computer?
I'd like to essentially tar/gz a directory on a remote machine and save the file to my local computer without having to connect back into my local machine from the remote one. Is there a way to do ...
4
votes
4answers
181 views
SSH “sleeping” for a long time before connect? [duplicate]
Possible Duplicate:
How to speed my too-slow ssh login?
I have a very strange issue with my SSH server. Whenever I attempt to connect, it literally waits about 30 seconds to a minute before ...