LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   CentOS (https://www.linuxquestions.org/questions/centos-111/)
-   -   CentOS 7 ssh vi (https://www.linuxquestions.org/questions/centos-111/centos-7-ssh-vi-4175524330/)

julienfmills 11-04-2014 01:43 PM

CentOS 7 ssh vi
 
Folks,

I am using a CentOS 7 machine and using konsole.

When I ssh to a slackware machine and start vi, it doesn't start correctly, doesn't seem to start full screen. So I use vim which starts full screen. But in vim, I can't highlight, copy and paste.

This works fine on CentOS 6 to slackware.

And it works fine connecting CentOS 7 to CentOS 6.

It's a long-shot, but... has anyone else run into this?

Ztcoracat 11-13-2014 03:47 PM

I haven't run into what you have going on.

I'm willing to find out why with my 2 machine's as I'm running the same to distributions as you.

I'm not on a server yet so I may not be able to ssh my CentOS 7 machine to Slackware or vice versa.

If there is something I can run for you to test?

With VM you can hold down Ctrl-Alt-Enter keys at the same to get full screen.
I'm not sure if that will work in Vim but it can't hurt to try-

Why you can't highlight, copy and paste in vim has me baffled. (you should be able to)
Perhaps the PDF will be of some use.
http://www.eandem.co.uk/mrw/vim/usr_doc/doc_a4m.pdf

julienfmills 11-14-2014 08:27 AM

Z,

Thanks for the reply, at the moment I'm not doing anything about this because I don't know what to do.
But, to replicate the issue:

Open up a terminal on your CentOS 7 machine (I'm using Konsole 2.10.5).
ssh to the Slack machine.
On the Slack machine, vim a file.
Now use the mouse to highlight text.

Usually the text is copied by just highlighting, but not here ... So ....
If I click 'Edit' up top, the copy is greyed out.
If I right click the text, no menu, it undoes some of the highlighting.


I know that highlighting text is a tricky thing, right now I'm just working around this.

Ztcoracat 11-14-2014 10:41 AM

Quote:

Originally Posted by julienfmills (Post 5269676)
Z,

Thanks for the reply, at the moment I'm not doing anything about this because I don't know what to do.
But, to replicate the issue:

Open up a terminal on your CentOS 7 machine (I'm using Konsole 2.10.5).
ssh to the Slack machine.
On the Slack machine, vim a file.
Now use the mouse to highlight text.

Usually the text is copied by just highlighting, but not here ... So ....
If I click 'Edit' up top, the copy is greyed out.
If I right click the text, no menu, it undoes some of the highlighting.


I know that highlighting text is a tricky thing, right now I'm just working around this.

In order to ssh to my Slackware machine I need to have LAMMP stack installed and working right?

szboardstretcher 11-14-2014 10:54 AM

No, LAMP is Linux + Apache + Mysql + PHP, which is a web server.

SSH is a secure shell, which requires the SSH Daemon be running on the target machine.

Ztcoracat 11-14-2014 11:19 AM

Thanks szboardstretcher

I found a Commandline SSH User Guide- (read that a while)
http://rcc.its.psu.edu/user_guides/r...nectivity/ssh/

julienfmills 11-14-2014 11:24 AM

Probably if you did a default install of Slackware ssh will be up and running.

Ztcoracat 11-14-2014 12:07 PM

Quote:

Originally Posted by julienfmills (Post 5269757)
Probably if you did a default install of Slackware ssh will be up and running.

I have to look.
I did perform a default install--

Ztcoracat 11-14-2014 07:35 PM

Maybe try a different terminal to get full screen.
Or check the terminal variables against 6.

Just an idea/suggestion:-

dunne 11-15-2014 02:22 PM

Probably your TERM variable is not being set correctly when you log in via ssh. What does "echo $TERM" tell you when you log in? Try setting it to something conservative and sensible, like "vt100", then running vi.


All times are GMT -5. The time now is 07:28 AM.