1
vote
1answer
20 views

Delayed SSH Connection, Authentication, and Commands

My home computer, a Mac running OS X 10.8.5, normally accepts SSH connections over the Internet (I have port forwarded) but is asleep right now. It sometimes may wake up for various reasons while I am ...
0
votes
2answers
26 views

Unable to scp from remote to local Mac

I have gone over SU and SO posts looking for a way to get this to work, but I'm about to put up my hands and stick with a GUI. I want to scp a ZIP file from a remote server to my local machine. I can ...
0
votes
0answers
9 views

Type in multiple terminals [duplicate]

I am looking for a solution for Windows to be able to type the same commands in multiple terminals (SSH) at the same time. I am using ConEmu with Git bash, but any solution for Windows is of interest. ...
1
vote
2answers
34 views

SSH TERM detection

My ssh config file has accept env set as: AcceptEnv LANG LC_* I am a bit confused how when I ssh through some clients my TERM variable is set as xterm256-color, and other clients TERM is set as ...
0
votes
1answer
19 views

Mac OS X set terminal name that persists after SSHing somewhere else

I try advice like this that recommends adding the following to your .profile: function tabname { printf "\e]1;$1\a" } So you can type tabname brokenbox to name your tab. The problem is as soon ...
1
vote
1answer
15 views

How to make screen bigger in byobu

My new server install looks odd: is there anyway to resize it to use the whole terminal window?
0
votes
1answer
46 views

How do I display directories in colour on remote systems over ssh via Terminal?

When I do ls in Terminal.app, I see that directories on my local system are in colour. However, when I connect to a remote cluster via ssh, ls output is no longer coloured. Is there a way to have ls ...
0
votes
0answers
21 views

Connecting to ssh and using screen not working properly

I used once ssh -t <login@server> screen -R to connect to a server and everything worked fine. I used the terminal in the server to execute an script and then detach the screen. I came back ...
3
votes
1answer
63 views

Why does my .bashrc get read when I run noninteractive commands over ssh

I've prepended each of my bash config files (~/.bashrc,~/.bash_profile,~/.profile) with echo NAME_OF_FILE, i.e. I get '.bashrc' when I source in ~/.bashrc. What baffles me is why I get and ...
0
votes
1answer
30 views

How can I setup an X Server to run in the background on Windows?

I have grown tired of the (visual) problems I get when using the combination of not-so-great terminal emulation+CygWin on Windows. Now I just run a forwarded gnome-terminal from my server when working ...
0
votes
2answers
30 views

Why do I not have access to defined aliases on the server while connected via ssh?

Why do I not have access to defined aliases on the server while connected via ssh? How can I force the terminal to use their defined aliases?
3
votes
1answer
72 views

What does Shift+Enter do in a terminal, and can I disable it in Vim?

Everyone once in a while while in insert mode in Vim, I'd be happily typing along, when all of a sudden I'd be thrown out of insert mode and my last edit undone after hitting a certain key ...
0
votes
1answer
27 views

scp without leaving ssh

I happily use both ssh and scp. Quite often I am in an ssh session and I'd like to retrieve a file from my machine and put it in the directory I'm currently in without having to open a new terminal ...
0
votes
0answers
24 views

What environment variables are set when I use ssh?

When I use ssh, I notice that my TERM variable is forwarded automatically. This is quite useful, but I'm wondering what other variables are forwarded or set. So far I've found the following ...
1
vote
0answers
38 views

Xfce terminal resize not sent across ssh

I'm running into some strange behaviour related to terminal resize updates not being sent across ssh. On my local machine if I open a terminal and do tput lines I get 24. Then making the window taller ...
0
votes
0answers
281 views

MobaXTerm colors are washed out - how to configure the scheme

Out of the box, MobaXTerm's rendering of the Midnight Commander screen looks like this (ZOC by comaprison to the right; PuTTY looks similar): How can I fix this? Is there some environment variable ...
5
votes
3answers
1k views

Could not create directory '/var/empty/.ssh'

Every day, after several hours of use, anything using SSH will just randomly stop working. The only solution is for me to restart my machine, which fixes it until it randomly occurs again. > git ...
0
votes
1answer
35 views

Tell me, when script has finished

Some years ago I had a small script[1] called beep-forever which ringed the terminal bell for ever. Use case: I want to know if a script has finished: do-foo-which-lasts-ten-to-thirty-minutes.sh; ...
1
vote
1answer
59 views

OpenSSH, FreeBSD screen overwrite when closing application

I installed a fresh FreeBSD 10 on a VM and connected via SSH and I've noticed that whenever i close a program (e.g., htop, top, nano etc) the contents of the session gets overwritten. This doesn't ...
0
votes
3answers
36 views

Connect to remote computer through one between (with credentials)

I need to access to remote computer and I have username and password, but I can access only from third computer ( like proxy, I also have credentials for third computer). WhenI start project, from ...
0
votes
1answer
87 views

osx - change terminal-color based on user

what i want to achieve : everytime i log onto a machine via ssh with a specific user -> "danger" like ssh danger@somehost i want the terminal to change its background to red, so i have a visual ...
1
vote
2answers
64 views

What is a command-line equivalent of pressing a key on remote computer via ssh

What are the options to target specific keys on a remote computer and execute the equivalent of virtually pressing them from the terminal via ssh (what would normally be a user pressing them)? ...
0
votes
1answer
146 views

Mac OSX Lion 10.7.5. Is there any way to permanently disconnect from a server?

Every time I open terminal on my Macbook Pro, I get the IP address of a server I once ssh'd into. I allowed someone to use my computer to access his server and now it seems like there's some permanent ...
0
votes
0answers
60 views

Why is my ssh output hanging until I kit a key

I'm suddenly seeing strange behavior in all of my ssh sessions. The output often freezes mid-stream until I hit a key. It's not on page boundaries, or any byte boundaries that I can see. It manifests ...
2
votes
2answers
93 views

Is there any linux server with public ip on the internet? [closed]

Im learning Linux but not always in home. Is there any Linux server on the internet with ssh and remote terminal enabled for testing and training?
0
votes
0answers
111 views

Shared connection frequently closes when opening a new connection

I'm making heavy use of reusing a shared connection which I open to a remote box at the beginning of my workday. My .ssh/config looks somewhat like this: ControlMaster auto ControlPath ...
1
vote
2answers
49 views

SSH or Remote filesystem mounting

In a situation where you spend the majority of your time in the terminal and Vim/Emacs/other command-line editors, what are the pro's and con's of working via SSH or by mounting a remote filesystem ...
9
votes
5answers
525 views

Is there a command in Linux which waits till it will be terminated?

I'm trying to build a Windows batch file, which starts putty/plink with port forwarding, and nothing else. The Windows part is ready so far: start plink.exe -ssh -i key.ppk -L 1234:localhost:80 ...
1
vote
1answer
829 views

How to connect to a local hyper-v virtual machine via SSH?

What I have: Windows 8.1 professional edition What I want? To simulate a circumstance: connect a remote Linux system using SSH. What I do: Install CentOS 6.4 x64 under the built-in Hyper-v. It works ...
1
vote
0answers
141 views

SSH doesn't resize terminal

I'm trying to resize my terminal window which is connected via SSH, but the change of the size is not reported to the host. My system is Arch-Linux where most packages are up-to-date. Fortunately, I ...
0
votes
1answer
481 views

su in shell script started from ssh works in other terminal

Sorry my dumb question but I don't know how to describe my situation. There are logs from Jenkins: ssh www.myserver.com '/var/lib/tomcat7/webapps/deploy_webapp.sh' + id uid=1004(jenkins) ...
0
votes
2answers
56 views

Overwraping lines when using ssh by osx terminal

I'm using ssh command from osx terminal to connect my centos remote server. If I type long string and want to go next line, the characters don't go to second line but come back the first line left ...
1
vote
0answers
183 views

Resume term after ssh disconnect without multiplexer (screen/tmux)

Screen and tmux (like emacs) are fancy feature rich terminal multiplexers designed to let you efficiently manage terminals as if it was 1985 but they just complicate the simple task of resuming an ssh ...
1
vote
1answer
94 views

How can I enable command line history on a remote Ubuntu terminal session?

When logging into a remote Ubuntu session using ssh, my command line history, which I'd usually access on my local terminal with the cursor keys is replaced with ^]]A ^]]B characters etc. How can I ...
0
votes
0answers
103 views

xubuntu xterm lag echo issue with ssh

I have a xubuntu box and using its terminal everything is fine locally; but when I ssh to any server the remote echo seems to be holding the last line until a key is pressed or the window is resized. ...
0
votes
2answers
1k views

How does one view the terminal (tty) output externally? (Not a new ssh session, but what is currently going on)

Basically I've set up a few Raspberry Pis running different programmes, and I'd like to see what is being outputted on them. I can obviously connect via SSH, but that's a new tty session. Tried ...
1
vote
2answers
55 views

does this exist: UNIX box with ethernet and nothing else, all interaction is done by SSH'ing in

So I could sit this UNIX box by my router and all configuration would be done via local SSH. Then once it's set up, I could SSH in from the internet and use UNIX (and all the tools contained within). ...
0
votes
3answers
1k views

How to get the commands issued in a ssh session

I need to list out all the commands executed in a "ssh session". I use multiple ssh session to login to remote servers. So, when I logout from one session, I need to get the commands executed in that ...
2
votes
2answers
232 views

How to make a terminal freeze if its idle fr 15 minutes

I want to make my terminal freeze, if it is not used for more than 15 minutes. I do have the option to edit the .ssh/sshd_config. But I want a script instead of this..
3
votes
1answer
90 views

Is there any benefit to exiting nested SSH sessions, as opposed to closing the entire terminal application?

The question should hopefully sum things up, but essentially, I'm in a bunch of SSH sessions, some of which have additional SSH sessions to other hosts. Are there any negative impacts to simply ...
1
vote
1answer
45 views

Restarting multiple mac computers with terminal

How do you restart multiple mac computers that are on the same network with terminal? I know the ssh command to login to one computer but I want to be able to send a reboot command to multiple ...
0
votes
1answer
176 views

Is it possible to control a remote terminal window?

I run a few things in a terminal window at work (osx and linux servers) and would often like to check on them from home. I can ssh to my work computer, but I'm wondering if it's possible to control ...
-2
votes
1answer
78 views

Why i can not connect myself as root on mac using the terminal?

Actually i have to connect myself as an admin : ssh user@xxx.xxx.xx.xx to log into the mac and then use "su" to be as root. I can't connect myself directly as root! WHY?!?....
0
votes
1answer
107 views

Bash terminal lacking functionality when running as non-root

I'm running a command-line Debian system, accessed via SSH through PuTTY, and am experiencing differing terminal functionality between root and other users. When logging in as root, the terminal ...
0
votes
1answer
775 views

How to change terminal colors when connecting to SSH hosts

So you want to change terminal colors and resetting them back on exit? It's possible! Thanks to .ssh/config, alias and setterm.
0
votes
2answers
1k views

New terminal window (duplicate session) from Putty command line?

Being on Windows and accessing Linux via Putty, is it possible to spawn new terminal (Putty) window from the command line? I.e. to send something to Linux, while responding on which, it initiate new ...
0
votes
0answers
21 views

How can I get a *diiferent look* when I'm working on a remote server [duplicate]

Preamble (feel free to skip) This is question is (mostly) a duplicate of: How can I change my (Linux) terminal's appearance when I SSH in to a remote machine? Yes, it would make more sense to ...
2
votes
3answers
1k views

How can I change my (Linux) terminal's appearance when I SSH in to a remote machine?

I sometimes find myself with several terminals open, some of which are ssh-ed in to other (production) machines. If I run a command like "drop all tables in the database" on one of those ssh-ed ...
0
votes
3answers
340 views

How do I remotely execute scripts on multiple servers, mix output

Hi I'm looking for a piece of software or some sort of technique that would enable me to do following in one terminal window: Take as input a list of ssh-enabled machines with login, password and ...
0
votes
3answers
74 views

Connecting ssh from ubuntu

I want to connect to ssh from ubuntu terminal but I don't know how. I have searched it on google but I don't understand. I have an ip adress, username and password. If someone can explain to me how ...