Comment
Comment by balefrost
If you just need "switch using keyboard", not necessarily "switch using shell", some KVM switches allow input switching using keypresses. For mine, it's <SROLLLOCK> <SCROLLOCK> <1-4> <ENTER>, though I think that can be customized.